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.:

<page>
<parentId>commonLayout</parentId>
...
</page>

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?

Thanks,

Bob