Creating Custom Page Tab & Highlighting

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 10
Points 110
maksum Posted: Mon, Mar 31 2008 11:12 PM

I needed to create a custom page and add it to the tabs at the top (along side Home, Forums, etc.)  I was able to successfully accomplish this by following instructions such as those found here:

http://blog.danbartels.com/archive/2006/04/25/2334.aspx

(Basically, just go in and create an article through admin, and then between the <navigation> tabs in SiteUrls.config you can add the tab in a format similar to those already there.

However, when I am on that page, I would like that tab to be highlighted... just as the case is with the standard pages.  Does anyone know how I might go about doing this?

BTW, using CS 2007.  I have found a few threads that get me really close, such as this:

http://communityserver.org/forums/p/486062/574150.aspx#574150

but they aren't for CS 2007.

Thanks!

Mike


  • | Post Points: 5
Not Ranked
Posts 10
Points 110
maksum replied on Tue, Apr 1 2008 2:04 AM

Well, I searched through a LOT of topics...

FINALLY got it to work by following this:
http://dbvt.com/blog/archive/2007/06/19/making-the-siteurls-config-selected-link-quot-light-up-quot.aspx
I copied Themes/leanandgreen/Common/master.Master file
and created Themes/leanandgreen/Common/getarticle.Master and added the line:
<CSControl:SelectedNavigation ID="SelectedNavigation1" Selected="helpandinfo" runat="server" />
(under the HeaderRegion tag)
and then in Themes/leanandgreen/Content/content.aspx I changed the reference FROM master.Master to my new getarticle.Master file

NOTE: now EVERY custom article will have that "help and info" tab highlighted.  Maybe that's ok, since
a lot of the little articles created will link off of that page.  However, if you read down in the comments under the
main post in this:
http://dbvt.com/blog/archive/2007/06/19/making-the-siteurls-config-selected-link-quot-light-up-quot.aspx
you'll see that perhaps Dustin found a solution to this.  For the time being I'm leaving it as is so
that tab is always highlighted.

Hope that helps someone else who might be struggling with this.


  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com