Options to create reusable page containers for prototype pages

Hi,

We currently have setup prototype pages like the following:

/hst:prototypepages:
  /prototypepage1:
    jcr:primaryType: hst:component
    hst:primarycontainer: main
    hst:referencecomponent: hst:abstractpages/base
    /main:
      jcr:primaryType: hst:containercomponent
      hippo:identifier: 43b034db-240d-480d-9a69-edea2f3c0cd4
      hst:label: Content Page Main
      hst:xtype: hst.vbox
      /1:
        ...
    /header:
      jcr:primaryType: hst:component
      hst:template: ...
      /top:
        jcr:primaryType: hst:component
        hst:template: ...
        /logo:
          jcr:primaryType: hst:containercomponent
          hippo:identifier: f2a42c7a-42e2-45a0-bd69-a31516459acf
          hst:label: Logos
          hst:xtype: hst.vbox
  /prototypepage2:
    jcr:primaryType: hst:component
    hst:primarycontainer: main
    hst:referencecomponent: hst:abstractpages/base
    /main:
      jcr:primaryType: hst:containercomponent
      hippo:identifier: 43b034db-240d-480d-9a69-edea2f3c0cd4
      hst:label: Content Page Main
      hst:xtype: hst.vbox
      /2:
        ...
    /header:
      jcr:primaryType: hst:component
      hst:template: ...
      /top:
        jcr:primaryType: hst:component
        hst:template: ...
        /logo:
          jcr:primaryType: hst:containercomponent
          hippo:identifier: f2a42c7a-42e2-45a0-bd69-a31516459acf
          hst:label: Logos
          hst:xtype: hst.vbox
  ...

As you can see above, the following component nodes are repeating between prototype pages:

    /header:
      jcr:primaryType: hst:component
      hst:template: ...
      /top:
        jcr:primaryType: hst:component
        hst:template: ...
        /logo:
          jcr:primaryType: hst:containercomponent
          hippo:identifier: f2a42c7a-42e2-45a0-bd69-a31516459acf
          hst:label: Logos
          hst:xtype: hst.vbox

Since, we want treat the above as page containers, we can’t add them directly under hst:abstractpages/base. Are there any options to create this as a reusable component, but still configure them as page containers so that they are created under hst:workspace/hst:pages ? Thank you!

Cheers,
Selva

What you could possibly do is use a page event listener and respond to a page created event.