• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Cliff
#1 Posted : Friday, January 19, 2007 2:52:51 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Unless I'm missing something, I don't see any way to style the current category link in the Category Menu module.
jetheredge
#2 Posted : Friday, January 19, 2007 3:38:50 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Here is the code behind for the category menu that is going to be in sp2. It adds a "current" class to the current category link.
File Attachment(s):
view.ascx.vb (9kb) downloaded 3 time(s).

You cannot view/download attachments. Try to login or register.
Justin Etheredge
Senior Software Engineer
BVSoftware
Cliff
#3 Posted : Friday, January 19, 2007 3:53:48 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Beautiful, thanks Justin. One suggestion is that the 'current' class would work better on the list item instead of the link, just for some extra styling flexibility, but this will work for me for now.
jetheredge
#4 Posted : Friday, January 19, 2007 5:08:47 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

yeah, we can look at changing that. it might be a bit more work to get that in, but for you cliff, we'll see what we can do. :-)
Justin Etheredge
Senior Software Engineer
BVSoftware
Cliff
#5 Posted : Saturday, January 20, 2007 9:30:49 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Heheh, you da man. ;-)
jetheredge
#6 Posted : Monday, January 22, 2007 11:27:01 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Here is the updated code-behind for the category menu. It will now put the current class on the list item.
File Attachment(s):
view.ascx.vb (10kb) downloaded 2 time(s).

You cannot view/download attachments. Try to login or register.
Justin Etheredge
Senior Software Engineer
BVSoftware
Cliff
#7 Posted : Monday, January 22, 2007 2:11:21 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Awesome, thanks!
Cliff
#8 Posted : Monday, January 22, 2007 4:17:28 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Heads up; when placed on a custom page, the 'current' class is set for the last category visited, which looks kind of odd.

Edit: looks like it isn't just custom pages, but the home page and other pages as well. Is there a way to override this?
jetheredge
#9 Posted : Monday, January 22, 2007 4:36:19 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Yeah, see if this works for you.
File Attachment(s):
view.ascx.vb (10kb) downloaded 7 time(s).

You cannot view/download attachments. Try to login or register.
Justin Etheredge
Senior Software Engineer
BVSoftware
Cliff
#10 Posted : Monday, January 22, 2007 7:28:09 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Perfect, thanks, Justin.
GG
#11 Posted : Friday, February 2, 2007 9:36:11 AM(UTC)
GG

Rank: Member

Joined: 5/9/2006(UTC)
Posts: 65

Where is this file supposed to go?
jetheredge
#12 Posted : Friday, February 2, 2007 9:44:50 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

/BVModules/ContentBlocks/Category Menu/
Justin Etheredge
Senior Software Engineer
BVSoftware
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012