Previously we can get things from the current document api,but not sure how to get the current page class name dynamically.
You have to pass that information through from your controller to your view.
Have a look at the IPageDataContextRetriever. Cheers, Jeroen
I want to pass the data type of the current page from the widget to the controller so that it can retrieve the items.
Please, sign in to be able to submit a new answer.