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

Creating absolute urls in CQ for consuming externally.

$
0
0

1) Selector which gets parsys

    StringWriter defaultHtml = new StringWriter();

    pageContext.pushBody(defaultHtml);

  %>

    <cq:include path="<%=nodeName%>" resourceType="<%=resourceType%>"/>

  <% pageContext.popBody();%>

<%=defaultHtml %>

2) the above produces relative urls, so the externall app wont show images, styles, any scripts.

3) how can make the above output with absolute urls. Please suggest.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



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