Ruby Forum Radiant CMS > Setting r:title from a custom extension

Posted by Carl Pattie (carl)
on 21.07.2008 02:37
Hi everyone.
I have been using Radiant for a while, and have finally made an
extension for a customer, but I have question for you all to help me put
the final polish on it.  Basically I want to know how to set r:title
from my controller, or view?
I noticed the summer reboot documentation effort is producing some good
reference material, and I must thank all the contributors for that.  I
noticed that Sean is still in the progress of completing the section I
would be after on this page
http://wiki.radiantcms.org/Creating_an_extension_VI.  Which was very
helpful by the way.

Thanks,
Carl Pattie.
Posted by Sean Cribbs (seancribbs)
on 21.07.2008 04:35
(Received via mailing list)
You can set the @title instance variable somewhere in your controller or
template or create a content_for block in your template named :title:

<% content_for :title do %>4-Minute Sweet Harmonious Biscuits<% end %>

Sean
Posted by Carl Pattie (carl)
on 21.07.2008 05:25
Sean Cribbs wrote:
> You can set the @title instance variable somewhere in your controller or
> template or create a content_for block in your template named :title:
> 
> <% content_for :title do %>4-Minute Sweet Harmonious Biscuits<% end %>
> 
> Sean

Thanks Sean,
That worked a treat. My extension has that final polish I was looking 
for.

Carl