hi,
i trying <sling:include> content node wrapped inside <div> on jsp.
for example have textimage content node: "/content/company/en/product/jcr:content/par/textimage"
i can access html content hitting http://localhost:4502/content/comapny/en/product/jcr:content/part/textimage.html
but now, html content rendered inside jsp this, tried using <sling:include>
<%@ taglib uri="http://cms.ecom.shc.com/bundles/commerce/global/trends/common" prefix="content" %>
<%@include file="/apps/commerce/global-commerce/global.jsp" %>
<%@page session="false"
trimdirectivewhitespaces="true" %>
<div>hello</div>
<div><sling:include path="/content/verticalpages/fashiontrends/en/trends/prom-shop/jcr:content/par/textimage" /></div>
<div>world</div>
however, seeing empty <div> <sling:include> is, no html content returned.
what doing wrong?
thanks in advance.
i'm going assume typos, looks have paths confused.
in sling include statement, you're including:
/content/verticalpages/fashiontrends/en/trends/prom-shop/jcr:co ntent/par/textimage
but you're pulling up:
/content/comapny/en/product/jcr:content/part/textimage.html
i think using following work (assuming part typo par , comapny typo , mean company:
<sling:include path="/content/company/en/product/jcr:content/par/textimage" />
More discussions in Archived Spaces
adobe
Comments
Post a Comment