sling include | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Employee
October 16, 2015

path comes handy when you want to render resources with selectors path="${somepath}.withselector.html"

2 replies

Tim_Donovanuk
Level 2
October 16, 2015

I believe you can use resource= instead of path= if you've already got a reference to a resource using getResource, e.g. 

sling:getResource(resourceResolver,'/content/page')

See http://sling.apache.org/documentation/bundles/sling-scripting-jsp-taglib.html#include

Translate
Feike_Visser1
Feike_Visser1Accepted solution
Employee
October 16, 2015

path comes handy when you want to render resources with selectors path="${somepath}.withselector.html"

Translate