Quick Nav:  Online Store   |   Login | Register

Tab.Parent in templates

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
caroig
<100 Posts
Posts:57


10/05/2008 12:14 PM  

I'm using a template that just displays level1 child menu items (so no hierachy in the template). 

I'm using Tab.Parent.IsActive in the hope that I can identify which child tabs belong to the active parent but it doesn't seem to work.  From the documentation This token can then be used to access all the properties of the parent page  - it sounds like it should work.  I assume that the use of Page and Tab are interchangeable.

I've attatched the parent and child templates.

 

 


Attachment: 1105141875671.txt
Attachment: 1105141877254.txt

John Mitchell
Posts:3478


10/08/2008 2:44 PM  

Yes, Tab and Page are interchangeable, and Tab.Parent.IsActive should return True for the parent of the active page.
The way you have it setup it could put the class attribute in there twice though:

For this:

[Level1-Item[ < li IIF({Page.IsActive}='True', class="SelectedItem") IIF({Page.Parent.IsActive}='True', class=" ParentSelected") > ]]



  • You may see this < li class="SelectedItem" class=" ParentSelected">

    This would be better:
    [Level1-Item[ < li IIF({Page.IsActive}='True', class="SelectedItem") IIF({Page.Parent.IsActive}='True', class=" ParentSelected") > ]]


    Then it will come out like this:
    < li class="SelectedItem ParentSelected" >
  • Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
    Forums >Snapsis Product Support >CSS NavMenu > Tab.Parent in templates



    ActiveForums 3.7
    Powered by: Snapsis Software