Unable To Get Implicit Objects In WCMPojo | Community
Skip to main content
November 17, 2018
Solved

Unable To Get Implicit Objects In WCMPojo

  • November 17, 2018
  • 1 reply
  • 1066 views

I am using a component where there is need of dynamic dropdown. The options are configured in the page properties. But I am unable to get currentPage Object in datasource.html file. Below is the structure of my component.

And datasource calling the wcmpojo class. Below in the flow.

enter image description here

datasource.html

<sly data-sly-use.data="${'apps.myprj.components.content.tabcontent.HtlDatasourceExample'  @ text=currentPage.path}"> </sly> 

HtlDatasourceExample is getting call and returning correct response if values are hardcoded.

Issue is unable to get sling objects in HtlDatasourceExample such as currentPage.

Thanks

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

Hi,

Please check Is it possible to access pageProperties from a datasource?

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 18, 2018