I want to display a piece of html code only on the cms homepage. Is there a conditional for this or a conditional for particular sections (like latest articles section, which is the homepage)?
conditional for cms home or particular section
Collapse
X
-
You could always use the section title:
Code:<vb:if condition="$html_title == 'Home Page'">hello</vb:if>
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
-
It works in the main template for the page - vbcms_page. If you want it in custom templates, you will have to register any variables you want to use in there after you make sure it is available at that point in the code. For help with that, there is an article over on vbulletin.org. If you need further help with that, then that is also the place to post for help.
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
-
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
-
I'm also looking for this. Specifically I want to show a widget on the main listing but not the articles themselves (there are thousands so manually selecting a layout is not an option) -
This will require custom coding. For help with this, please ask on www.vbulletin.org, the modification site.
-
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment