Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP 2010 - Quick Launch in Table of Contents - Need to see Subsites ONLY

Status
Not open for further replies.

akrshaw

Programmer
Oct 24, 2006
77
US
I have been reading all day the options and answers that are out there for limiting the TOC to sub-sites.

I have tried the SOAP Data Source option and inserting the Data View in the page, this does nothing.

I have tried creating a document library and adding this code to a text file, adding a content editor to the page, which does nothing:

<script language="JavaScript" type="text/javascript">
// This script removes lists, libraries and discussions from Table of Contents
var links = document.body.getElementsByTagName("a");
for(ii=0; ii<links.length; ii++)
{
if(links[ii].outerHTML.indexOf("BaseType") != -1 &&
links[ii].parentNode.parentNode.parentNode.parentNode.className == "level-section")
{
links[ii].parentNode.parentNode.parentNode.parentNode.style.display = "none";
}
}
</script

I do not have access to the server or anything besides SharePoint Designer.

I ultimately just need the below Quick Launch Headers to be removed or hidden:
External Links
Pursuit Links
Conventions
Solution
SharePoint

ANY help is greatly appreciated!~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top