Nudaii Well-known member Jul 16, 2012 #1 Howdy I have a piece of code which I want hide on the forumlist. login page, and whats new pages how would i create a conditional for that? thanks in advance
Howdy I have a piece of code which I want hide on the forumlist. login page, and whats new pages how would i create a conditional for that? thanks in advance
Jake Bunce Well-known member Jul 16, 2012 #2 This will work in the container templates like PAGE_CONTAINER: Rich (BB code): <xen:if is="!in_array({$contentTemplate}, array('forum_list', 'login', 'find_new_threads'))"> </xen:if> It names the content template of the page which is found in the page source: http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/ Upvote 0 Downvote
This will work in the container templates like PAGE_CONTAINER: Rich (BB code): <xen:if is="!in_array({$contentTemplate}, array('forum_list', 'login', 'find_new_threads'))"> </xen:if> It names the content template of the page which is found in the page source: http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/