CQ5 - 根据用户群的组成部分对话中隐藏一个选项卡? [英] CQ5 - Hiding a tab within a component dialog depending on user group?

查看:193
本文介绍了CQ5 - 根据用户群的组成部分对话中隐藏一个选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何想法如何,我会隐藏或显示一个对话框,标签面板,这取决于用户组的用户是属于什么?

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

我想从CRX内容探险家要做到这一点(ACL的)。但我没有得到太多的运气吧。

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

干杯

推荐答案

正如通过的 anthonyh 的,在 ACL的方法是要走的路(如果这样的行为是真的有必要)。

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:

  • 编辑ACL以 /库/基础/组件/页/对话框/项目/标签/项目/图片
  • 添加拒绝JCR:读作者
  • 在登录的作者
  • 到<一个href="http://localhost:4502/content/geometrixx/en.html">http://localhost:4502/content/geometrixx/en.html打开页面属性
  • 在图像标签应消失
  • edit acls for /libs/foundation/components/page/dialog/items/tabs/items/image
  • add deny jcr:read for author
  • login as author
  • go to http://localhost:4502/content/geometrixx/en.html and open the page properties
  • image tab should be gone

请注意,如果选项卡包含的xtype = cqinclude 您必须对包括本身,而不是包含定义设置。因为在运行时,它会抱怨过缺少的目标包括,而不是渲染对话框都没有。

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.

这篇关于CQ5 - 根据用户群的组成部分对话中隐藏一个选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆