[Radiant] Shared Layouts

Sean Cribbs seancribbs at gmail.com
Sun Jul 6 14:02:35 CDT 2008


>
> I thought when you built an "endpoint" all its parts were removed and 
> only your controller's views were used, instead.  How can I edit the 
> static text in my view via the Radiant UI?  That would be awesome.
>
That was a recent addition.  Someone (I don't recall who) was annoyed by 
it clearing all existing parts.  We discussed and mulled it over, and I 
decided that, as long as they aren't saved, it's ok to overwrite 
existing parts.  Take a look at RailsPage#build_parts_from_hash to see 
how that works.
>
> So, in your example above, you created a "sidebar" and a "body" part 
> within your rails views.  And I wanted to write the sidebar using 
> Textile and the body using Markdown, I would create an Endpoint Page 
> via the Radiant UI corresponding to my controller and in it create two 
> Page Parts - "sidebar" and "body" and assign each part the correct 
> filter.
>
> Is this correct?
>
Exactly, except that the "endpoint" page is going to be called 
"Application" in the UI.  I'm open to changes on this if someone has a 
better name.

Sean



More information about the Radiant mailing list