<xen:hook name="forum_list_nodes">
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>
Do i just have to put a template where it says include template in the code?You could modify the forum_list template and add what you want to show accordingly.
If you want to show something below the navigation, then you should modify above:
Code:<xen:hook name="forum_list_nodes"> <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if> </xen:hook>
Yes that's it, thanks man!If by "home" page you mean the forum list, then:
How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'forum_list'">
This content will show on the forum list
</xen:if>
Hi, sorry for bringing up a super old thread.If by "home" page you mean the forum list, then:
How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'forum_list'">
This content will show on the forum list
</xen:if>
But there's nothing defining where it should show. :/Maybe try jake's post #5?
https://xenforo.com/community/threads/display-a-random-banner.19563/
Or #9
How do I use that to define it in my code snippet for randomizing banners then? :/compared viewName against XenForo_ViewPublic_Forum_List, it's what i use to limit showing something on just forum's index.
if we're on the homepage {
.... your loop here
}
viewName. Like i said.
Same as the one I mentioned above: ad_above_top_breadcrumbLet's start at the beginning for you.
What template are you trying to add your conditionals to, to try and show your random banners? What's the name of that template?
Big thanks! I will try this.Doesn't show here, because the viewName isn't the XenForo_ViewPublic_Forum_List
View attachment 150952
Does show here, because it matches.
View attachment 150953
Here's how I edited the template.
View attachment 150954
We use essential cookies to make this site work, and optional cookies to enhance your experience.