Skip to main content
Level 3
Oct 16, 2015 2:27 AM UTC
Question

sightly data-sly-resource to include rendering result of content page

Hi , 

  I'm trying to include rendering result of a content page in sightly uing data-sly-resource tag like below 

 <article data-sly-resource"${contentpagepath/jcr:content/par.html}"
             data-sly-unwrap></article>

 

 With the above i'm able to see the result of the content page but it is taking ages to load the result . If the same page path i execute from a browser , like from browser if i execute http://localhost:4502/contentpagepath/jcr:content/par.html i can see the result in a second . 

 

Is using data-sly-resource right in my case ? Any pointers greately appreciated .

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

krisgummAuthor
Level 3
Oct 16, 2015 2:27 AM UTC

Thanks for your reply leeasing . 

  Even mentioning resourceType explicitly didn't help . It still loads slow . The same url if I try to access from browser , result is rendered very quick .Any other options that I can try or investiage ?

 

regards

Translate
Level 8
Oct 16, 2015 2:27 AM UTC

Try the following:

<article data-sly-resource="${'contentpagepath/jcr:content/par' @ resourceType='foundation/components/parsys'}"></article>

Add "wcm/" if you're using the newer parsys.

Translate