Search Navigation (Dropdown) SP2013

Today my co-worker asked me for help “Can you setup the search dropdown navigation for all subsites in the site collection? The search navigation should inherit from the root site.”.
Pretty simple requirement, I thought.
I started to configure the search navigation setting.



Created Search Navigation Dropdown

Issue: The dropdown displayed as expected but the sub-sites were not inheriting the search navigation from the root site of the site collection.


Searchbox Root Site


Subsite Searchbox

Solution: I created this powershell script to copy the navigation nodes from the root site to all subsites. Feel free to use and comment if you have any questions.


5 thoughts on “Search Navigation (Dropdown) SP2013

  1. Hi,

    You cannot call a method on a null-valued expression.
    + $w.Navigation.SearchNav.AddAsLast($node)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Any solutions?


  2. I think this is among the most significant info for me. And i am glad reading your article. But want to remark on some general things, The website style is wonderful, the articles is really great D. Good job, cheers gcbegcdceckc

  3. This worked wonders for me, however I now want to add a third dropdown and when I try to re-run the script to push this into the sub-sites I get:
    “This Site Search Navigation Already containing values”
    Is this only capable of running once? How do I update sub-sites if I update the top level?

Leave a Reply

Your email address will not be published. Required fields are marked *