2013-08-12 53 views
0

我有3個parsys divs的頁腳。如果我將一些組件添加到該解析器(例如Text組件),我無法在其他頁面中看到它。是否有可能在一個網站的所有網頁上有1個常見頁腳,3個parsys組件?CQ5 - 與網站的所有頁面具有相同的parsys組件的頁腳

我有這樣的代碼在我myApp/components/page/footer.jsp

<%@include file="/libs/foundation/global.jsp" %> 
<%@ page import="com.day.cq.commons.Doctype, com.day.cq.i18n.I18n, com.day.text.Text" %> 
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 
<div id="footer"> 
<hr /> 
<div id="left-footer-cell" class="footer-cell"> 
<cq:include path="fc1" resourceType="foundation/components/parsys" /> 
</div> 
<div id="mid-footer-cell" class="footer-cell"> 
<cq:include path="fc2" resourceType="foundation/components/parsys" /> 
</div> 
<div id="right-footer-cell" class="footer-cell"> 
<cq:include path="fc3" resourceType="foundation/components/parsys" /> 
</div> 
</div> 

感謝所有幫助

回答

4

什麼你要找的是一個iparsys。從Adobe docs

繼承的段落系統是一款系統,該系統還允許 你繼承父創建的段落。您將 段落添加到iparsys,例如/content/geometrixx/en/products 因此,同樣具有iparsys 且具有相同名稱的產品的所有子頁面都會從父級繼承創建的段落。在每個級別的 上,可以添加更多段落,然後由子頁面繼承 。您也可以隨時取消 級別的段落繼承。

您可以使用在頁面中iparsys就像你有以上,只需chaning常規款系統resourceTypeiparsys

<div id="left-footer-cell" class="footer-cell"> 
    <cq:include path="fc1" resourceType="foundation/components/iparsys" /> 
</div> 
<div id="mid-footer-cell" class="footer-cell"> 
    <cq:include path="fc2" resourceType="foundation/components/iparsys" /> 
</div> 
<div id="right-footer-cell" class="footer-cell"> 
    <cq:include path="fc3" resourceType="foundation/components/iparsys" /> 
</div> 

進行拖移,然後將獲得的內容由子頁面繼承。 (他們還需要使用引用fc1,fc2fc3的模板來提取內容。)

相關問題