| Author |
Message |
Amy
Guest
|
Posted:
Fri Nov 04, 2005 9:51 pm Post subject:
Omit "My Site" link from the CategoryNavigationWebPart |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|