的Adobe CQ5页面之间共享内容 [英] Sharing content between Adobe CQ5 pages

查看:487
本文介绍了的Adobe CQ5页面之间共享内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在创造一个CMS在Adobe CQ5网站。一个已经要求的部分,就是有一个自定义导航组件的菜单。用户将能够输入一系列的链路和网址特定于该页面。

I'm currently creating a CMS for a site in Adobe CQ5. One of the components that has been asked for is to have a custom navigation component for menus. The user would be able to enter a series of links and urls specific to that page.

起脚是,它们需要能够与其他若干页共享此菜单(但不是全部,通常这将是在相同的文件夹中的其他网页)。也将有几个不同的菜单每一个自己组页之间共享。

The kicker is that they need to be able to share this menu with several other pages (but not all, generally this will be the other pages in the same folder). There will also be several different menus each shared between their own group of pages.

所以我想的问题是,什么是有被编辑,一旦一个菜单的最简单方法,并跨越多个页面的变化反映?

So I guess the question is, what is the simplest way to have one menu that is edited once and the changes reflect across multiple pages?

推荐答案

另一种选择是从父使这部分继承。要做到这一点,你可以添加一个复选框,对话框将显示如果组件应该或不应该继承其父。如果是这样的组件code能爬上树寻找父页面上的导航组件和加载,如果发现。如果没有该组件可以只从当前的资源加载数据。

Another option is to make this component "inherit" from its parent. To do this you can add a checkbox to the dialog which will indicate if the component should or shouldn't inherit from its parent. If so your component code can crawl up the tree looking for a nav component on a parent page and load it if found. If not the component can just load the data from its current resource.

这将让你做任何多的独立导航组,并允许内容​​作者编辑的导航,而不必切换到另一个配置方面,它可以打破的编辑体验。

This will let you make any number of separate nav groups and allow the content authors to edit the navigation without having to go off to another config area, which can break the editing experience.

这篇关于的Adobe CQ5页面之间共享内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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