• 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

Matthew Hawley

Well-known member
#1
I'm trying to edit the node titles in the sub forum popup menu.



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

Jake Bunce

XenForo moderator
Staff member
#9
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>