SDI with Dynamic Template
Hello,
I have a component that is included in SDI config with nocache.
when I authored the component on the page, it worked as expected.
but when the component is authored in template structure then it has some problems
In my component model, I have this,
@ScriptVariable
private Page currentPage;
it becomes null, and when I try to debug with
request.getPathInfo()
// Result: /content/myproject/global/conf/myproject/settings/wcm/templates/product-page/structure/_jcr_content/head/columncontrol/col_1/tabs/item_1725959732966/col_1/accessories_1748107095.nocache.html/myproject/base/components/product-details/accessories/v1/accessories
In HTML markup,
| <div class="accessories"><!-- SDI include (path: /conf/myproject/settings/wcm/templates/product-page/structure/_jcr_content/head/columncontrol/col_1/tabs/item_1725959732966/col_1/accessories_1748107095.nocache.html/myproject/base/components/product-details/accessories/v1/accessories, resourceType: myproject/base/components/product-details/accessories/v1/accessories) --> | |
So my requirement is how to get the Page from it?
