Hi,
I am trying to <sling:include> a content node wrapped inside <div> on a jsp.
For example I have a textimage content node: "/content/company/en/product/jcr:content/par/textimage"
I can access the html content by hitting http://localhost:4502/content/comapny/en/product/jcr:content/part/text image.html
But now, I would like those HTML content to be rendered inside another JSP like this, so I 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:co ntent/par/textimage" /></div>
<div>WORLD</div>
However, I am only seeing empty <div> where the <sling:include> is, no HTML content was returned.
What am I doing wrong?
Thanks in advance.