Forum Discussion

raguv12ps's avatar
6 years ago

Display TKB widget through API

I am working on a custom component to display the TKB widget with id >sections.widget.sections-browser-taplet(For a particular category page) available under TKB section when creating custom page.  ...
  • Parshant's avatar
    Parshant
    6 years ago

    raguv12ps,

    You just need to put that component in your custom component.

    Add conditions of user roles and add the widget under those conditions, something like below:

    <#assign hasRole = 'Administrator' />
    <#if hasRole == 'Administrator' >
    <@component id="common.widget.name" />
    </#if>