我们如何在CQ5中定义全局属性 [英] How do we define global properties in CQ5

查看:73
本文介绍了我们如何在CQ5中定义全局属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是拥有一个具有作者属性的全局页眉和页脚。
因此,如果我们在一页上更新属性,则应将其反映在所有页面上。

My Requirement is to have a global header and footer with author able properties. So if we update the properties on one page it should be reflected across all pages.

在CQ5中实现此目标的最佳方法是什么。

What is the best approach to achieve this in CQ5.

推荐答案

ACS AEM Commons现在无需使用iparsys即可支持此功能-共享组件属性( http://adobe-consulting-services.github.io/acs- aem-commons / features / shared-component-properties.html

ACS AEM Commons now supports this functionality without use of an iparsys - Shared Component Properties (http://adobe-consulting-services.github.io/acs-aem-commons/features/shared-component-properties.html)

使用Shared和/或Global属性配置菜单,您可以直接将其模板化到您所有页面上(不需要iparsys)。然后,您可以在网站上的任何页面上编辑页眉/页脚,并将在所有页面上进行更新。

Configure your menu with Shared and/or Global properties and you can simply template it directly onto all of your pages (no iparsys required). You can then edit the header/footer from any page on the site and it will by updated on all pages.

与使用设计对话框不同,共享组件属性支持标准内容激活和国际化(存储在首页下方的值)以及您从内容中获得的其他期望。

Unlike using design dialogs, Shared Component Properties supports standard content activation and internationalization (values stored below the homepage) and anything else you would expect from content.

这篇关于我们如何在CQ5中定义全局属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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