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.

SearchSettings

SearchNavigation

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.

SearchDropdown

Searchbox Root Site

SearchBox

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.

Download

5 thoughts on “Search Navigation (Dropdown) SP2013

  1. Hi,

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

    Any solutions?

    Regards,
    John

  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 to John Cancel reply

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