Quick Nav:  Online Store   |   Login | Register

current page is active or active child

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
peter schotman
<20 Posts
Posts:17


08/18/2008 3:29 AM  

Hi John,

I am in need of a token that signals the difference between an active page and a page in the (breadcrumb) path. Currently, I can't tell the difference.

IIF({Tab.IsActive}='True',class="SelectedTab") Tab.IsActive refers to the complete path. Consequently I can't discriminate the styling of a parent between his active state and his breadcrumb state.

This issue has also been discussed in: http://www.snapsis.com/Support/tabid/601/forumid/7/tpage/1/view/topic/postid/9108/Default.aspx#9108

Did you make any progress?

Peter


Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
John Mitchell
Posts:3478


08/21/2008 10:17 AM  
Hi Peter,
I thought I had, but after checking the code it appears that I have not added that yet.
Would you like it to work like I described in the other post?
peter schotman
<20 Posts
Posts:17


08/21/2008 1:41 PM  

Well I would rather have the discrimination between: "is active" (the page you are currently looking at) and "in the breadcrumb".

I don't quite understand your solution: Page.HasSelectedChild and also Page.HasSelectedDescendant. How could I style the current page with this? It is none of both.

Peter


Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
Host Account
<250Posts
Posts:104


08/25/2008 12:02 PM  
I have added two new Tokens:

{Page.IsSelected} -- will be true for only the currently selected menu item.

{Page.IsBreadcrumb} -- will only be true for menu items that are ascendants of the currently selected item (but not the currently selected item).

---
{Page.IsActive} -- was already there and is true for items that are currently selected and also those in the breadcrumb.
Andreas
<20 Posts
Posts:3


08/27/2008 2:24 AM  
Hi,

I would like a similar functionality. In a two level menu the default is:

SelectedTab Level1
SelectedTab Level2

If an item is selected below the first level. This means I can't use the CSS class "SelectedTab" to style only the selected item (since it styles the entire selected tree).
Can I use {Page.IsSelected} in a template to overcome this limitation? I have never used templates before but I would like the above example to be:

SelectedTab Level1
SelectedTab Selected Level2

This way I can style the "Selected" class which makes it easier to see which item is currently in use.


Kind Regards
Andreas
peter schotman
<20 Posts
Posts:17


08/27/2008 2:32 AM  
Andreas, this was also my problem. John has solved this now. Peter

Peter Schotman
DotNetNuke professional
Cestus Websites
Arnhem, Gelderland, The Netherlands
Andreas
<20 Posts
Posts:3


08/27/2008 6:58 AM  
That sounds great Peter. This must be implemented in a later release than v3.3.0 developer edition, how can I get this update? Is it the default logic or do I have to write my own template?


Kind Regards
Andreas
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 > current page is active or active child



ActiveForums 3.7
Powered by: Snapsis Software