1

We have created a site collection (root web), it has a quick launch bar.

Then, created a subsite, it has its own quick launch bar.

Is there a way to use the same quick launch bar for the entire site collection?

2 Answers 2

2

You can try the below powershell code. You need to

# get a sitecollection object(SPSite)
$SPSite = Get-SPSite -Identity "http://sp2010/"

# loop through all the subwebs(SPWebs) in the site collection
foreach ($SPWeb in $SPSite.AllWebs)
{
   # check so that this is not the root web
  if (!$SPWeb.IsRootWeb)
  {

     # allow unsafe updates
     $SPWeb.AllowUnsafeUpdates = $true

     # Get a PublishingWeb object for the current web
     $SPPubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($SPWeb)

     #Current Navigation Settings
     $SPPubWeb.Navigation.InheritGlobal = $true
     $SPPubWeb.Update()

     #RESET unsafe updates

     $SPWeb.AllowUnsafeUpdates = $false

     Write-Host -ForegroundColor Green $SPWeb.Url.ToString()  " - Done"

     $SPWeb.Dispose()
 }


 $SPSite.Dispose()
1
  • will try this one
    – variable
    Commented Apr 4, 2014 at 11:45
2

You can activate SharePoint Server Publishing Infrastructure features on the site collection level. Then Go to the site settings of your subsite and find Navigation link in Look and Feel section. In Current Navigation settings select Display the same navigation items as the parent site

2
  • Suppose I have root web -> subsite1 -> subsite2 -> subsite 3. Then is it possible to get navigation bar of root web into the subsite 1,2, and 3? Thanks.
    – variable
    Commented Apr 4, 2014 at 7:19
  • We have 1 web applicaiton with 500 site colelctions and subsites and more subsites within.. Is there a way to do it in powershell?
    – variable
    Commented Apr 4, 2014 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.