# Options to create reusable page containers for prototype pages

**URL:** <https://community.bloomreach.com/t/options-to-create-reusable-page-containers-for-prototype-pages/2933>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [December 15, 2021, 4:25pm UTC](https://community.bloomreach.com/t/options-to-create-reusable-page-containers-for-prototype-pages/2933 "2021-12-15T16:25:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva.manivasagam](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/selva.manivasagam/32/575_2.png) [@selva.manivasagam](https://community.bloomreach.com/u/selva.manivasagam)\
**Post date:** [December 15, 2021, 4:25pm UTC](https://community.bloomreach.com/t/options-to-create-reusable-page-containers-for-prototype-pages/2933/1 "2021-12-15T16:25:43Z")

</div>

Hi,

We currently have setup prototype pages like the following:

```auto
/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:

```auto
    /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

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [December 16, 2021, 9:17am UTC](https://community.bloomreach.com/t/options-to-create-reusable-page-containers-for-prototype-pages/2933/2 "2021-12-16T09:17:13Z")

</div>

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

> **[Overview of Experience Manager Events and Response Mechanisms - Bloomreach...](https://documentation.bloomreach.com/14/library/concepts/channels/overview-of-channel-manager-events-and-response-mechanisms.html)**
>
> The fast and flexible on-premise or PaaS headless CMS
