How to retrieve current page class name?

Ei Dar Li Ko Ko asked on December 7, 2022 08:07

Previously we can get things from the current document api,but not sure how to get the current page class name dynamically.

Correct Answer

Brenden Kehren answered on December 7, 2022 13:18

You have to pass that information through from your controller to your view.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jeroen Fürst answered on December 8, 2022 08:24

Have a look at the IPageDataContextRetriever. Cheers, Jeroen

0 votesVote for this answer Mark as a Correct answer

Ei Dar Li Ko Ko answered on December 13, 2022 05:51

I want to pass the data type of the current page from the widget to the controller so that it can retrieve the items.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.