Joe Lapp wrote:
> Hi everyone,
>
> I'd like to create a set of pages having two fields per page: a body
> and an image URL.  The layout will centrally control the positioning
> and formatting of the image across all pages, which is why I don't
> want to embed the image separately in each page.
>
> How do I do this?  Do I manually create an "image" tab for each new
> page, and then have my layout retrieve the URL from this image tab?
>   
That is one way to do it.
> Adding the tab to the parent page doesn't result in the children
> inheriting it.
>
>   
Make sure that you include inherit="true" in the layout: <r:content 
part="image" inherit="true" />
This will force Radiant to look through parent pages until it finds a 
matching part with that name.
> Also, I assume that each tab correlates to a VARCHAR in the database.
> Is there a more efficient way to do this?
>
>   
Actually, it corresponds (roughly) to a record in a separate table in 
the database.  There are more efficient ways, but they would involve 
writing an extension.

Andrea's DefaultPageParts might help you with automatically creating the 
tabs.

Sean
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to