Hi @akaria you can use the granite render condition.
in your project create hide-tab.html
(/components/graniteConditions/hide-tab/hide-tab.html) and call
sling modal with Sling request adaptable. In the sling modal you check
the template of page is listed in the templates property or not.Based
that you can set the render condition attribute for the request. You can
get the page path from the request query string
slingHttpServletRequest.setAttribute(RenderCondition.class.getName(),
new Simp...