Jump to content

How do I get the current forum view method?


Go to solution Solved by Daniel F,

Recommended Posts

Posted

Is it possible to get the current forum view method (table, fluid etc.) in code?

I notice that the URL to set the method contains these parameters so was hopeful they could be easily retrieved somehow in JS:

do=setMethod&method=fluid

 

Posted (edited)
1 hour ago, Mick23 said:

somehow in JS:

Cookie GIF by NBC

But using Daniel's suggestion you could get the value using that code, add it as a data attribute to something in a template and then grab that using JS code up front. A few more lines of code though.

Edited by Nathan Explosion
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...