Forum Discussion

Shawn Xiong's avatar
Shawn Xiong
Brass Contributor
Sep 28, 2016
Solved

SharePoint Site Global Navigation Mega Menu

Currently I'm trying to implement global navigation cross site collections ( SharePoint Online/2016 ), currently there are some planned approaches, just want to get some different ideas and options, ...
  • Franck Cornu's avatar
    Sep 28, 2016

    Hi Shawn Xiong. Maybe you can take a look at this sample on the PnP GitHub repository:

     

    https://github.com/OfficeDev/PnP/tree/master/Components/Core.TaxonomyNavigationComponents

     

    It corresponds to your 3rd option. Behind the scenes, this sample uses RequireJS and the JavaScript injection technique to build a top navigation bar. All navigation links are managed through a taxonomy term set and are retrieved via JSOM.

     

    If you want, you have also an other solution using Webpack and the SharePoint "Script On Demand" loading technique (instead of RequireJS):

     

    https://github.com/OfficeDev/PnP/tree/master/Solutions/Business.O365StarterIntranet

     

    In this case you will need to create a custom master page to load the JS files.

     

    Hope this help!

     

    Franck.

     

     

Resources