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

XF 1.2 Edit node titles in sub forum popup

Discussion in 'Styling and Customization Questions' started by Matthew Hawley, Oct 3, 2013.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

    I'm trying to edit the node titles in the sub forum popup menu.

    [​IMG]

    But it seems the node titles are within
    Code:
    {xen:raw $child} 
    So how do I edit them?
     
  2. Matthew Hawley

    Matthew Hawley Well-Known Member

  3. Amaury

    Amaury Well-Known Member

    Do you want the color changed or what?
     
  4. Matthew Hawley

    Matthew Hawley Well-Known Member

    I want to add some HTML next to the node titles
     
  5. Tracy Perry

    Tracy Perry Well-Known Member

    What he's probably wanting to do is add some fontawesome icons next to them. ;)
     
  6. Matthew Hawley

    Matthew Hawley Well-Known Member

    HA! :LOL: Your half correct. I want to add node stats & subforum popups with font awesome icons next to them.
     
  7. Matthew Hawley

    Matthew Hawley Well-Known Member

    I needs to know how! Ya know what I'm saying?

    :p
     
  8. Tracy Perry

    Tracy Perry Well-Known Member

    Patience grasshopper... I'm sure someone that can help will be coming by. In the mean time - go watch some 'tube!
     
    Amaury likes this.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> node_forum_level_n (and of course there are other node types, node_*_level_n)

    With how children are rendered, {xen:raw $child} actually represents the same template for previously rendered children that are now being associated with a higher level child.

    Current child - can be modified to affect all sub-forum links in those popup menus.
    Children of current child - already rendered, do not modify. Instead modify the blue code which will have been previously used to create those rendered children.

    Code:
    <li class="node forum level-n node_{$forum.node_id}">
    	<div {xen:if $forum.hasNew, 'class="unread"'}>
    		<h4 class="nodeTitle"><a href="{xen:link forums, $forum}" class="menuRow">{$forum.title}</a></h4>
    	</div>
    	<xen:if is="{$renderedChildren}">
    		<ol>
    			<xen:foreach loop="$renderedChildren" value="$child">
    				{xen:raw $child}
    			</xen:foreach>
    		</ol>
    	</xen:if>
    </li>
    
     
    KiF and Matthew Hawley like this.

Share This Page