Setting r:title from a custom extension

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.

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

Sean C. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs