Skip to main content
Question

How to get variable mode setting for the current page

  • December 13, 2023
  • 2 replies
  • 663 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.

2 replies

tank666
  • December 13, 2023

tank666
  • January 5, 2024