The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Code to show a template on only the front page
I need to know how to have a custom template only show on the front page of the CMS. I have installed a custom slider on my vB 4.2.2 CMS using the widget system. The widget that I'm using has a custom template powering it. I need to know how to show that slider only on the front page of my CMS. Right now obviously it shows on all the CMS pages.
Link: http://lenmkaiser.com/vb/vb4/content.php |
#4
|
||||
|
||||
Quote:
Code:
<vb:if condition="in_array($nodeid,array(1, 2, 3))"> |
#5
|
||||
|
||||
I tried that and it did not show up. How do you find what the node id is? I thought it was the id of the link in the Navigation Manager but that did not work either. I tried it with nodeid of 1 and tried it with nodeid of 8 because the Navigation Menu had the id of the tab as 8.
|
#6
|
||||
|
||||
Anyone know why this first code does not work on a particular page?
Code:
<vb:if condition="$nodeid == 1"> </vb:if> |
#7
|
|||
|
|||
Try this for the CMS home page:
Code:
{vb:raw $vbulletin->parentnode} The page at the end of the post says the node id is the number after the 'r=' Code:
content.php?r=116-my-phpcontent.php/116-my-php |
#8
|
||||
|
||||
Quote:
Code:
<vb:if condition="(THIS_SCRIPT == 'vbcms' AND !$_GET['r'])"><div class="cms_slider">{vb:raw static_html}</div></vb:if> |
#9
|
|||
|
|||
Have you tried?
Code:
<vb:if condition="(THIS_SCRIPT == 'vbcms' AND !$_GET['r=114'])"><div class="cms_slider">{vb:raw static_html}</div></vb:if> |
#10
|
||||
|
||||
Yes and that shows it on the correct page but it also shows it on the home page (front page) as well though. I'd rather take it off the front page.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|