How to get the current page from a datasource on locked component in an editorial template | Community
Skip to main content
Level 2
February 2, 2022

How to get the current page from a datasource on locked component in an editorial template

I have built an editorial template, and as part of it I have a core component form option that is locked so the author can't change the contents.

I want the options to be dynamic based on a content fragment attached to the page, however when I use a servlet as the data source and use

 

@ScriptVariable

private Page currentPage;

 

However all it ever returns is the template page. 

 

How can i get the page that is being rendered not the template

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