Omit "My Site" link from the CategoryNavigationWebPart
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Omit "My Site" link from the CategoryNavigationWebPart

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Amy
Guest





Posted: Fri Nov 04, 2005 9:51 pm    Post subject: Omit "My Site" link from the CategoryNavigationWebPart Reply with quote

Hi,

I am doing branding on a Sharepoint site and the client does not want
the "My Site" link available to the users. I am using the
CategoryNavigationWebPart but can't figure out how to modify it to omit
the "My Site". Is there a way to do this without having to write new
code?

Thanks in advance,
Amy
Back to top
BiermanA
Guest





Posted: Sun Nov 06, 2005 9:50 am    Post subject: Re: Omit "My Site" link from the CategoryNavigationWebPart Reply with quote

Hi Amy,

The "My Site" link's HTML element ID is 'hlMySite'.

A quick way to hide the My Site link would be to set the hlMySite
element's style's display property to none. One way to accomplish this
very easily would be to add a "Content Editor" web part to the portal's
defaut.aspx with the following code placed in the web part:

<script language="JavaScript">
document.getElementById('hlMySite').style.display = 'none'
</script>

This changes the display to none, so you aren't actually removing the
link, just hiding it. You can also uncheck the Content Editor's
"Visible on Page" property to hide the web part as well.

There are other ways to remove the My Site link, but setting it's
style's display to none is probably the simplest method. Using the
Content Editor web part makes the change easily reversible.

Tony Bierman
Senior Software Engineer
SharePoint Solutions
www.sharepointsolutions.com
Back to top
Amy
Guest





Posted: Sun Nov 06, 2005 5:50 pm    Post subject: Re: Omit "My Site" link from the CategoryNavigationWebPart Reply with quote

Tony,

Thanks so much for the suggestion. I tried this and it does work
beautifully. I really like the fact that it is easily reversible. The
only problem is that the client does not want the "My Site" link
available throughout the entire site and with this solution, the
content editor web part has to be added to each page.

Can you tell me about the other ways to remove the My Site link?

Thanks,
Amy
Back to top
Kevin Laahs
Guest





Posted: Mon Nov 07, 2005 9:51 pm    Post subject: Re: Omit "My Site" link from the CategoryNavigationWebPart Reply with quote

Try creating a Custom Cascading Style Sheet for your portal site (Site
Settings/Change portal site properties) and then insert the following into
that stylesheet:-

a#hlMySite
{
display:none;
}

"Amy" <abolden@eastridge.net> wrote in message
news:1131289313.851892.212770@f14g2000cwb.googlegroups.com...
Quote:
Tony,

Thanks so much for the suggestion. I tried this and it does work
beautifully. I really like the fact that it is easily reversible. The
only problem is that the client does not want the "My Site" link
available throughout the entire site and with this solution, the
content editor web part has to be added to each page.

Can you tell me about the other ways to remove the My Site link?

Thanks,
Amy
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB