Mar 29th, 2011, 01:05 PM
surf page inheritance ?
We have several Surf pages in our application where the <page> elements contain duplicate <component> declarations. The pages share header, footer, and side bar components. I'm looking for some way to consolidate the common <component> declarations and reference them in the XML configuration for the pages.
Perhaps a <parentId> sub-element within the <page> element could accomplish this, E.G.:
Some other form of inclusion would suffice. I.E.: and <include> directive.
I did search for existing functionality for inheritance or an include mechanism to no avail. I noticed the <page-association> feature. However the "child" semantics here are not what I need. I also read (from http://wiki.alfresco.com/wiki/Surf_P...velopers_Guide) :
At present, child relationships are the only ones understood by the Surf platform.
Perhaps I am missing something?
Mar 29th, 2011, 03:20 PM
I realize that I could set the scope of the "region" elements in our template files to be "global". However, we are trying to reuse the layout defined in these templates at a higher level. e.g. "three-column-template.ftl" and then base all three column pages on this template. Therefore, there are pages that do not share the same header, footer, or side bar need to be based on the template.
I'm thinking there is away to use region scope to accomplish what I need. I believe I would still need inheritance, but at the template level..
Mar 30th, 2011, 03:38 PM