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

Get parent node_id

Discussion in 'Styling and Customization Questions' started by Espen Espelund, Mar 27, 2012.

  1. Espen Espelund

    Espen Espelund Active Member

    I need to style some links based on what category they're in.

    <li id="thread-{$thread.thread_id}class="discussionListItem {$thread.discussion_state}{xen:if '!{$thread.discussion_open}', ' locked'}{xen:if {$thread.sticky}, ' sticky'}{xen:if {$thread.isNew}, ' unread'}{xen:if {$thread.prefix_id}, ' prefix{$thread.prefix_id}'}{xen:if {$thread.isIgnored}, ' ignored'} {xen:if {$showForumLink}, 'threadListNode{$thread.node_id}'}" data-author="{$thread.username}">
    Are there some simple way to get the parent node_id in the templates?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Espen Espelund

    Espen Espelund Active Member

    Thanks. Guess I'll have to style the individual node_id's then, since I don't want to enable category pages
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page