raguv12ps
6 years agoAce
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.
The idea is to display the widget based on a few permissions. in custom component.
Is it possible to achieve this by using Rest API or any other way.
Any approaches are welcomed as we have a short time period to work on this.
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>