Html CQ5-具有相同parsys组件的页脚,用于包含网站的所有页面
我有带3个帕西分区的页脚。如果我在parsys中添加了一些组件(例如文本组件),我在其他页面中就看不到它了。一个网站内的所有页面是否可以有1个公共页脚和3个parsys组件 我在我的Html CQ5-具有相同parsys组件的页脚,用于包含网站的所有页面,html,footer,aem,Html,Footer,Aem,我有带3个帕西分区的页脚。如果我在parsys中添加了一些组件(例如文本组件),我在其他页面中就看不到它了。一个网站内的所有页面是否可以有1个公共页脚和3个parsys组件 我在我的myApp/components/page/footer.jsp <%@include file="/libs/foundation/global.jsp" %> <%@ page import="com.day.cq.commons.Doctype, com.day.cq.i18n.I18n, c
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>
感谢您的帮助您需要的是iparsys
。从:
继承的段落系统是一个段落系统,它还允许
您可以从父对象继承创建的段落。你加上
例如,/content/geometricxx/en/products
因此,也有iparsys
使用相同的名称从父级继承创建的段落。在…上
在每个级别中,您可以添加更多段落,然后由
儿童版。您还可以取消段落继承
在任何时候都保持水平
只需将resourceType
更改为iparsys
,您就可以在页面中使用iparsys,就像上面的常规段落系统一样:
<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
、fc2
和fc3
的模板来导入内容。)您要查找的是iparsys
。从:
继承的段落系统是一个段落系统,它还允许
您可以从父对象继承创建的段落。你加上
例如,/content/geometricxx/en/products
因此,也有iparsys
使用相同的名称从父级继承创建的段落。在…上
在每个级别中,您可以添加更多段落,然后由
儿童版。您还可以取消段落继承
在任何时候都保持水平
只需将resourceType
更改为iparsys
,您就可以在页面中使用iparsys,就像上面的常规段落系统一样:
<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
、fc2
和fc3
的模板来拉入内容。)