I was wondering if there were some tips on the 'best' way to approach
this problem.
I have a site each of the 5 top level pages have the same format but a
different:
* top image
* color scheme
* tag line
I was thinking I would:
* create Snippets for the common elements
* create Layouts for the 5 types and include the common Snippets
This is not ideal because there is still alot of repition in the
layouts, it's not very DRY.
Ideal I would create a 5 data structures that encapsulate the
differences and have 1 Layout that pulls in the correct data to create
the required unique Layout.
Is there someway to accomplish this? Or is there a better approach?
Thanks-
Michael
_______________________________________________
Radiant mailing list
Post: Rad...@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Ideal I would create a 5 data structures that encapsulate the
> differences and have 1 Layout that pulls in the correct data to create
> the required unique Layout.
>
> Is there someway to accomplish this? Or is there a better approach?
This is actually the way to do it. In your layout user <r:content
part="{top,style,tag}" inherit="true">, and place the required
changes in the correctly named parts on the top pages. The
inherit="true" will make the children pages search up to those top
pages to find the parts.
~~ Brian