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. |
|
|
|
|
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 |
|
|
|
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. |
|
|
|
|
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 |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
|
|
|
|
|
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 |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
|
|
|
|
|
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? |
|
|
|
|
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 |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
|
|
|
|
|
Rank: Member
Joined: 5/9/2006(UTC) Posts: 65
|
Where is this file supposed to go?
|
|
|
|
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.