How to get variable mode setting for the current page