如何在cq-day中实现段落系统

时间:2012-08-09 16:19:51

标签: content-management-system cq5

我需要简短描述如何在day's Communique(cq)中实现段落系统。

我搜索了cq和谷歌的文档,但没有找到一个简单的解释,这有效。

有人能给我一个小解释吗?

非常有帮助和赞赏。提前谢谢。

(我需要CQ4.2的描述)

2 个答案:

答案 0 :(得分:0)

您可能知道,4.2是CommuniquéCMS的相对较旧版本。目前的版本是CQ 5.5。我最熟悉5.4,所以我的一些信息可能不适用于您的情况。

正如您所知,段落系统是基础组件,CMS提供的功能。您可以在页面模板中包含“parsys”作为组件;您可以扩展组件,添加自己的功能。因此,在这种情况下,我不确定“实施段落系统”是什么意思。

4.2的文档仍可在http://docs.day.com/en/home/communique_4.html获得。您可能还想查看http://dev.day.com/content/kb/home/cq5.html上的知识库和http://forums.adobe.com/community/digital_marketing_suite/cq5上的论坛。

答案 1 :(得分:0)

我需要做的是在包含parsys组件之前初始化。

我必须在组件解析之前添加的代码是:

<%
Style actstyle = null; 
%>
<cfc:initComponent cellId="body" componentId="/libs/Components/body">
<% actstyle = componentContext.getStyle(); %>
</cfc:initComponent>
<cfc:includeComponent cellId="body" componentId="/libs/Components/body" />


<cfc:includeComponent cellId="parsys"
    componentId="/apps/emb/Components/parsys" />

此外,在组件内部我需要一个编辑栏。 这也没有描述。

<%
ComponentContext cc = (ComponentContext) request.getAttribute("componentContext");
ComponentInfo ci = cc.getComponentInfo();
%>

<cfc:editbar
    parName="<%= cc.getContainerList() %>"
    parNum="<%= cc.getContainerLabel() %>"
    storagePre="<%= cc.getStoragePre() %>"
    dialogAny="<%= ci.getContentDialog() %>"
/>

问候,Seboeh