[typo] titles for tagged pages
Trejkaz
trejkaz at trypticon.org
Sun Apr 2 05:00:55 EDT 2006
On Sunday 02 April 2006 15:23, Ernie Oporto wrote:
> I found this in app/controllers/articles_controller.rb as the only mention
> of @page_title or tags.
>
> def tag
> render_grouping(Tag)
> end
> def view_page
> if(@page = Page.find_by_name(params[:name].to_a.join('/')))
> @page_title = @page.title
> else
> render :nothing => true, :status => 404
> end
> end
>
> and setting the @page_title line to
> @page_title = @page.title + " - #{tag.display_name}"
> doesn't produce anything when the URL is
> http://www.website.com/blog/articles/tag/blah
I think you might be getting a bit confused here. You want to set the title
in the "tag" method, not the "view_page" method. It's the tag pages which
you want to have the title, right?
TX
--
Email: trejkaz at trypticon.org
Jabber ID: trejkaz at trypticon.org
Web site: http://trypticon.org/
GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/typo-list/attachments/20060402/3456d62c/attachment.bin
More information about the Typo-list
mailing list