Expand my Community achievements bar.

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

Avatar

Level 1

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

0 Replies