vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2012, 01:39 AM
mike406 mike406 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 4
Default Using THIS_SCRIPT and $pages['name'] in templates

I'm adding some custom tabs in my navbar template, but am unable to have a tab show up as 'selected' when using the following conditional:

Code:
<vb:if condition="THIS_SCRIPT == 'adv_index' AND $pages['name'] == 'home'">
<li class="selected"><a class="navtab" href="http://www.myforum.com/forums/home.php?pageid=home">Network</a>
{links and menus here}
</li>
<vb:else />
<li><a class="navtab" href="http://www.myforum.com/forums/home.php?pageid=home">Network</a></li>
</vb:if>
Using the following conditional will not make the tab appear as selected when viewing pageid=home. However the conditional works fine in Plugins, however I do not want to use a plugin for my tabs.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
THIS_SCRIPT & pages Dragonsys "How Do I..." Questions 2 03-30-2012 11:17 AM
THIS_SCRIPT(or even forum)-specific modules on integrated pages? jw0ollard "How Do I..." Questions 3 01-06-2008 01:13 PM
Custom Pages and templates not working after upgrade RichBoy67 Troubleshooting & Problems 14 08-08-2007 03:35 PM
How do I manually delete cmps pages that are templates? tercede "How Do I..." Questions 1 02-15-2006 02:52 PM
pages based on templates will not show tpr Troubleshooting & Problems 1 10-14-2005 01:08 PM


All times are GMT -4. The time now is 02:23 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.