Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Using custom component in the Header in Skin Wrapper

Greetings,

 

I have created a custom component and I want to call this component in the Header inside Skin Wrapper rather than placing it on the Pages, is there any ways i can do it?

 

 

  • Hi,

     

    you should be able to include a custom component with the freemarker "include" directive:

     

    <#include "my-custom-component.ftl" />

     

  • You may be able to add it to the header "page" in Studio. See attached image. However, it depends on what you are trying to do in the header.

     

    You may get better and more options if you tell us what you're trying to accomplish.


    header.JPG
    • ChiaraS's avatar
      ChiaraS
      Lithium Alumni (Retired)

      Hi,

       

      you should be able to include a custom component with the freemarker "include" directive:

       

      <#include "my-custom-component.ftl" />

       

      • PaoloT's avatar
        PaoloT
        Lithium Alumni (Retired)

        You should also be able to use the @component directive to render the component in place.

         

        <@component id="foo-bar"/>

         Hope that helps