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

XF 1.4 Subforum description only in forum view

Discussion in 'Styling and Customization Questions' started by Edpal, Apr 20, 2015.

  1. Edpal

    Edpal Member

    I'm stumped on getting subforum's description to show when in that forum. Basically I'd like to use it as a rules or protocol block. Unless someone has a better suggestion. Eg. I run a music site and one sub is "Scores/Charts/Tabs" so under it's title I'd like a block to appear under the title.
    "All transcriptions from recordings to tab or staff music should be accompanied by the reference track, to avoid confusion between different versions of the song." Ala phpbb's subforum rules blocks.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the template and use a conditional statement utilising the node ID.
  3. Edpal

    Edpal Member

    Thanks Brogan. Thing is, it's not just any subforum, it's all subforums that have a parent that is under the root.

    I like the results I get with template forum_view starting off like this, tooltips are engaged so this doesn't make a mess by popping up the description of forums that are directly under the root.
    <xen:title>{$forum.title}{xen:helper pagenumber, $page}</xen:title>
    <xen:if is="{$forum.description} AND @threadListDescriptions">
    Last edited: Apr 20, 2015

Share This Page