Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

How do I use ?

$
0
0

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.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>