Forum Discussion

mscifo's avatar
mscifo
Guide
14 years ago

Disable wrapper for a custom page

Does anyone know if it's possible to disable the wrapper on individual pages?  I have a custom page with a custom component that I want to just output a block of html (no html/head/body tags or anything else the wrapper includes).

  • Ah, I got you.  What about adding some Freemarker to the wrapper bits to exclude them for this custom page?  For example:

     

    <#if coreNode.shortTitle != "My Custom Page">

    <div>

    ...

    </div>

    </#if>

  • If it's a custom component, just omit the HTML wrapper in your component code.  For example, if your component code contains:

     

    <div id="my-custom-div">

    Hello World!

    </div>

     

    Then all you will see is "Hello World" without any component wrapper.

    • mscifo's avatar
      mscifo
      Guide

      There is no wrapper in the component code.  I am referring to the page wrapper in the Studio->Community Style->Wrapper tab that is applied to all pages regardless of layout.

      • xorrkaz's avatar
        xorrkaz
        Genius

        Ah, I got you.  What about adding some Freemarker to the wrapper bits to exclude them for this custom page?  For example:

         

        <#if coreNode.shortTitle != "My Custom Page">

        <div>

        ...

        </div>

        </#if>