Hi Janandith,

Just adding what has not been answered by Tobias.

janandith jayawardena schrieb:
Hi,

taking the given layout

+ myapp
+ A
     + A.jsp
     + content.jsp
+ B
     - sling:resourceSuperType = "A"
     + B.jsp


...
and in the  replaceSuffix option:

can I upload a .txt file and change the extension to .html


ex:
<sling:include path="path to resource.txt" replaceSuffix=".html" />

No, the request extension cannot (currently) be modified in an include. I think the background of this is, that the request extension is tied somewhat to the content type of the response, which may not be changed from within an included request.

Regards
Felix

Reply via email to