Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

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

Avatar

Level 3

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 .

2 Replies

Avatar

Level 8

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.

Avatar

Level 3

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