We have several sites we build for different departments across our enterprise. All of our sites have a footer with links like About, Help, Contact. On each site those point to different urls and/or have slightly different text, for example one might say "About our program" and another might say "About us".
Up until now we have either had to create new page layouts for each site or put a webpart zone on each page. Both of those approaches get to be unmanageable as we get more sites and more content in them.
We would like to add the footer to the master page. And I've found many tutorials that show how to add a set footer like a copyright to the bottom of the master page. But we can't do that because each site has slightly different things it needs in the footer.
Is there some way I could add something to the masterpage like the following:
And then all the different site owners would need to do is put an html file in their site assets folder.
<li><a href="site/about">About our program</a></li> <li><a href="site/faq">Help</a></li> <li><a href="site/contact">Drop us a line</a></li>
We don't have access to central admin and can't deploy any custom webparts or apps.
I used the snippet editor to create a content editor webpart and put a absolute url to a file into the content link and that worked. But I can't figure out how to make the url relative to the current site.
I tried using the
~site token, but then the webpart gives me a "cannot retrieve the url" error. I also tried to take a page from the custom cssregistration links and tried to replace the content link with
<!--SPM:<% $SPURL~site/SiteAssets/my-local-file.html %>-->
But that produce an error about using FORMS.
Master pages are a big mystery to me and I'm sure there is some simple concept I'm completely missing. Is there a way to have a different local file load onto the masterpage for each site?