简体   繁体   English

CQ:以内容为中心还是以页面为中心?

[英]CQ: Content centric OR page centric?

I have a query regarding CQ. 我有关于CQ的查询。 Your reply will really make the difference to my understanding. 您的回信确实会改变我的理解。

In other CMS like Vignette, content authors create the contents separately (not directly on the page) for ex. 在像Vignette这样的其他CMS中,内容作者分别为ex创建内容(不是直接在页面上)。 products details and then those contents are iterated / processed to display on the page. 产品详细信息,然后迭代/处理这些内容以显示在页面上。 But in CQ, the scenario is other way round. 但是在CQ中,情况则相反。 Authors directly create the content on the page. 作者直接在页面上创建内容。 Now if same content is needed on other page, how will that be re-used ? 现在,如果在其他页面上需要相同的内容,将如何重复使用?

Regards, Ronak 问候,罗纳克

Content can be reused across pages via Reference components . 内容可以通过参考组件跨页面重用。 From the docs: 从文档:

The Reference component lets you reference text in another part of a CQ based website (within the current instance). 引用组件使您可以引用基于CQ的网站的另一部分中的文本(在当前实例中)。 The referenced paragraph will then appear as if it was on the current page. 然后,所引用的段落将出现在当前页面上。 Instead of referencing a specific paragraph, the path can also be modified to specify an entire [paragraph-system]... 除了引用特定段落外,还可以修改路径以指定整个[paragraph-system] ...

There are some other techniques for sharing content and reference data across pages, including inheritance and "data components," described in this SO Q&A . SO Q&A中介绍了其他一些用于在页面之间共享内容和参考数据的技术,包括继承和“数据组件”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM