Results 1 to 3 of 3

Thread: surf page inheritance ?

  1. #1

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

    <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

  2. #2

    Default

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

    Bob

  3. #3
    Join Date
    Mar 2011
    Location
    China
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •