Skip to main content
Question

How to get variable mode setting for the current page

  • December 13, 2023
  • 2 replies
  • 627 views

Mark_Hampton

In my plugin I need to retrieve the variable modes that have been set by the user for the current page - but I don’t see any API for doing that.

On other node types I can use resolvedVariableModes and explicitVariableModes to get the modes, but on page nodes these are both undefined.

I could search for a top level node in the page with no explicit mode settings, and then derive the page setting from that, but that’s a pretty roundabout way of getting to it.

Any ideas? Is there something I am missing in how to do this?

This topic has been closed for replies.

tank666
  • December 13, 2023

tank666

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings