Quick Nav:  Online Store   |   Login | Register

new Tokens

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
llong
<100 Posts
Posts:96


03/27/2008 1:20 PM  

John,

Could I request 2 new tokens:

  1. Page.ChildIsActive - True for a parent level where a visitor is on any child level.
  2. Page.TabIsActive - True if the current tab matches. Symantically 'IsActive' should be just the single tab but I wouldn't want to break templates that use this token as currently defined.

This would allows us to target higher level items that are not techincally "active" in terms of what the visitors is seeing.

Lance

John Mitchell
Posts:3471


03/27/2008 2:11 PM  
Hi Lance,
From your description, I think you understand that Page.IsActive is already true like you are defining Page.ChildIsActive since the IsActive flag is set for all Ascendants of a currently active child.

I guess you are saying that you would like to have a more defined way of telling the difference when a page is active or if it is only active because one of it's children is active.

I'll have to give this some thought, because I wouldn't want to have to try and explain the evolution of those two additional properties and they would be very confusing to someone that was learning them for the first time. A Page and a Tab are synonymous so Page.TabIsActive may be better as Page.Selected, and I think Page.HasSelectedChild may be a way to describe the other option.

That way being active would mean everything in the breadcrumb, and being selected would just be the one they are actually on.

Does that sound like what you were looking for?
John Mitchell
Posts:3471


03/27/2008 2:14 PM  
Technically I guess there should be Page.HasSelectedChild and also Page.HasSelectedDescendant
llong
<100 Posts
Posts:96


03/27/2008 2:50 PM  

What I'm really driving at is isolating the structure and function of the generic parent when viewing any child.

For instance, I like to disable links when they take the visitor to the same url. Using the template, I set a conditional statement to swap out the A tag for a P tag. This works perfectly on the first level. However, the parent remains "IsActive" and thus disabled in my case even though the visitor views a child page. They loose the ability to return to the parent via the menu then.

Your idea of IsSelected could work. It would be page(tab) specific, versus the whole menu branch.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software