View Full Version : CMS Widget: Any way to make it only show up on main page? [Solved!]
haincha
02-16-2011, 01:00 AM
I have a widget I only want to appear on the main page. Is there a way I can get my CMS widget to only show up on the main page?
Thanks.
Lynne
02-16-2011, 02:12 AM
What do you mean, just Main Page? Only use that particular Layout that has that widget on that Section and don't put any articles in that Section. Then, it will only be on that page. Alternately, assign a custom template to the widget and put a condition around it to only show on that page.
haincha
02-16-2011, 02:20 AM
Do you by chance know the
<vb:if statement="">
code for only main page?
I am just trying to get an iframe to show up on the main news page and not in any of the articles.
This doesn't really have to deal with widgets anymore. Just a template question I guess.
Lynne
02-16-2011, 02:59 AM
I think it's something like:
<vb:if condition="$_GET['r'] == '1-your-page-name' OR !$_GET['r']">code</vb:if>
haincha
02-16-2011, 03:08 AM
Thank you! Lynne, you've always taken care of me. You are a gentlewoman and a scholar! Go into my stable and take my finest stallion. He's yours. His name is Windjammer.
In all seriousness. I really appreciate it. That did the trick. I have been racking my brain and googling the crap out of every variation of the question I was asking.
Lynne
02-16-2011, 03:13 AM
Glad you got it working how you want it. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.