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!~
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!~