1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Determining the page type through template variables

Discussion in 'XenForo Development Discussions' started by bill78, Jun 24, 2014.

  1. bill78

    bill78 Member

    Is it possible to determine the page type through template variables?

    What I am trying to do is work out if the page is the forum index or not, the reason being is to do with the width for an advert and whether or not there is a sidebar or not (as the sidebar adds about 320px+ to the page before it is moved to the bottom when being responsive).

    Hope that makes sense???!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Sim, bill78 and Chris D like this.
  3. bill78

    bill78 Member

    Perfect, exactly what I was after - cheers!

    I have already clocked your responsive adsense guide and will be taking full advantage of it also, so thanks again :)
     

Share This Page