CQ5 - Hiding a tab within a component dialog depending on user group?

Owzzz picture Owzzz · Nov 17, 2011 · Viewed 14.2k times · Source

Any ideas how I would hide or show a dialog tab panel depending on which user group the user belongs to?

I tried to do this through the CRX content explorers (ACL's). But I'm not getting much luck with it.

Cheers

Answer

Alexander Klimetschek picture Alexander Klimetschek · Feb 10, 2012

As noted by anthonyh, the ACL approach is the way to go (if such a behavior is really necessary).

For example, to hide the "image" tab of the base page component:

Note that in case of tabs included with xtype=cqinclude you have to set it on the include itself, not the included definition. Because at runtime it would complain over the missing target of the include and not render the dialog at all.