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

How to check whether it's view_thread using xen:if is

Discussion in 'XenForo Questions and Support' started by NeoCHI, Feb 8, 2015.

  1. NeoCHI

    NeoCHI Active Member

    Within a certain template I want to use <xen:if is> to check whether the user is currently viewing the template in thread_view or not. How do I do this?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What are you trying to do exactly?

    It sounds like you may need to pass the session data.
  3. NeoCHI

    NeoCHI Active Member

    I want that specific template to show a label for something if it's being viewed in the thread_view but not displayed when it's displayed in the forum_view.
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. NeoCHI

    NeoCHI Active Member


    <xen:if is="{$contentTemplate} == 'thread_view'"> ?

Share This Page