# Custom Container component xtype

**URL:** <https://community.bloomreach.com/t/custom-container-component-xtype/1905>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [May 8, 2020, 3:14pm UTC](https://community.bloomreach.com/t/custom-container-component-xtype/1905 "2020-05-08T15:14:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benedikt.scheidl](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@benedikt.scheidl](https://community.bloomreach.com/u/benedikt.scheidl)\
**Post date:** [May 8, 2020, 3:14pm UTC](https://community.bloomreach.com/t/custom-container-component-xtype/1905/1 "2020-05-08T15:14:46Z")

</div>

Hello there,

I have a question concerning the xtype of a hst:containercomponent.  
I would like to know if it is possible to create custom xtypes or to edit the templates of the existing default xtypes.  
My intention behind this is to use the xtype to build corresponding markup around each component (not only around the whole container) so that the component template itself can be independent of multiple surrounding page layouts.

I appreciate every help you can provide.

Thanks in advance and greetings!

---

<div class="post-metadata">

**Author:** ![benedikt.scheidl](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@benedikt.scheidl](https://community.bloomreach.com/u/benedikt.scheidl)\
**Post date:** [May 11, 2020, 8:59am UTC](https://community.bloomreach.com/t/custom-container-component-xtype/1905/2 "2020-05-11T08:59:53Z")

</div>

Nevermind, I found a solution.  
It is possible to override the template used by the hst:xtype by using the hst:template property. On how to reference the container items, I used the vbox.ftl as orientation.
