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

Need help editing the node_list categories loop

#1
I wanna do a CS mod, that means that the categories are going to float in groups with their forums.
To do that i need to edit the loop that exports the forums and categories... and i dont have any idea from where to start...

where can i learn the xenforo syntax? and where are all right files?
 

Jake Bunce

XenForo moderator
Staff member
#2
You want this template:

Admin CP -> Appearance -> Templates -> node_category_level_1

That contains the HTML for level1 categories.
 
#5
here you haev my demo board(sorry, its hebrew), im using on it phpbb3, as you can see in the main page, i did that the categories are in blocks, in this style i didnt tables, so i needed to do after every 3 categories this line: <div style="clean:both"></div>
bacause if i didnt output the code, the categories didnt fited good in their place.

well, this is what i want to do in xenf, to put that code every 3 categories.

LOL, i forgot the link hh: http://wopsh.com
 

Jake Bunce

XenForo moderator
Staff member
#6
I did some testing and I was unable to create a running count of categories using template syntax. But you can manually specify every 3rd catid:

Code:
<xen:if is="in_array({$category.node_id}, array(1,2,3))">
	YOUR SEPARATOR
</xen:if>
 

Jake Bunce

XenForo moderator
Staff member
#8
Oh here is another idea. If you tightly manage the display orders of your categories then you can use this condition:

Code:
<xen:if is="{$category.display_order} % 3 == 0">

</xen:if>
That will be true for every third category (display orders 3, 6, 9, etc).