New answers tagged

1

User Custom Actions (ScriptLinks) can apply one JavaScript file to your whole Site Collection or one Web (site) I used it in the recent New Library View which doesn't have a MasterPage or JSLinks and wrote a short note on my learning for the Yammer group: SP FrameWork ►Client-Side◄ https://www.yammer.com/itpronetwork/#/notes/2872092 [ok, I just checked ...


2

Follow below mentioned steps. Inside the current site's Site Settings, navigate to Site Collection Administration > Site Collection Features. Activate SharePoint Server Publishing Infastructure if it's available... if it's not, you may be using SharePoint Foundation. Navigate to Site Actions > Manage Site Features, and activate the SharePoint Server ...


0

You can find the way for changing the MasterPage from How to give a subsite a specific master page? If the MasterPage option is missing under Look and Feel then you need to verify few things Your parent Site Collection must have SharePoint Server Publishing Infrastructure Feature activated from Site Collection Feature Your subsite must have SharePoint ...


0

That article does miss a few of the details. Here are a couple things you may be missing: The script uses 3 additional javascript libraries jQuery, Knockout and Linq.js. You'll need to download them and add references to those libraries in your masterpage. Something like this: <script type="text/javascript" src="scripts/jquery.min.js"></script> ...


0

Firstly I agree with @Aveenav that you should look into the building wsp package, that will follow Sharepoint model, it will place the master page in layouts directory, push it if you connect servers etc. But if you really need to, you can place in the SP library, and call it from there (you can place in the layouts as well but you will have to keep that ...


-1

Try: {your site}/_layouts/15/ChangeSiteMasterPage.aspx Amal's answer didn't have the 15 in it. I don't have enough rep to add a comment to his solution.


0

Instead of using PowerShell, create a WSP package and hookup and event receiver for the feature that sets the master page. That way you can apply same master page to sub sites.


0

Maybe I'm missing what you are trying to accomplish but why wouldn't you just create a table or div in the top of the in the table after the </sharepoint:SPSecurityTrimmedControl> <!--Hide Ribbon if Read Only Permissions --> <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" ...


0

Try appending URL /_layouts/changesitemasterpage.aspx


0

I was facing the exact same issue and resolved it by setting ReplaceContent="true" in the element.xml file of the module as below <File Path="MasterPageModule\MyMasterPage.master" Url="MyMasterPage.master" Type="GhostableInLibrary" ReplaceContent="TRUE" Level="Published"/> Also you can get it here ...


1

find below mentioned tags in SharePoint master page <div class="s4-lp s4-toplinks"> please don't touch the code in-between these two tags. Put style="display:none;" to that DIV tag like below. <div class="s4-lp s4-toplinks" style="display:none;"> Put your static menu code above the hidden html DIV tag E.g. Here is the sample code for top ...


1

Please have a look at the three part series on how to customize Top Navigation: Customizing SharePoint 2010 global navigation with Css and jQuery – Part 1 Here is another great series on how to brand SharePoint 2010: Brand SharePoint: Global Navigation – The Journey Begins (Part 3) For the header like title and icon, you can create your own HTML instead ...


0

In case this helps anyone, I needed to make a minor change to the seattle master page and I don't have SharePoint Designer yet, so I mapped a network drive to the master page gallery, made a copy of seattle.html, called it seattle_custom.html, then edited it using Notepad++ and saved my changes. When I went back to the Design Manager, it showed the html ...


0

If your two views for the document library are named Archive.aspx and Current.aspx, you can use the following Javascript code to get the filename from the URL. window.location.pathname.replace(/^.*[\\\/]/, '').replace('.aspx','') Assuming your masterpage/theme comes with jQuery, edit Archive.aspx and Current.aspx and insert the following jQuery code below ...


0

Create two webpart pages current and archive, make sure to fill the title field. Add the documents webpart to the page and in the webpart properties select the view corresponding to that page.


0

Error something went wrong is probably due because you didn't check in your masterpage (and approve it) even you'd like to cancel changes. So first do this, validate totally the masterpage and try to restore a previous version before your changes. If you cannot do this, create a new site collection, then pick up the masterpage from this site and replace ...


0

If you have Versioning enabled on your master page gallery, you can restore it back to the original version.


0

You can use below line in your master page to access your JS file anywhere from entire site collection. <script type="text/javascript" src="<asp:Literal runat='server' Text='<%$SPUrl:~sitecollection/Style Library/Envera/Js/jquery-1.10.2.min.js%>' />"></script>



Top 50 recent answers are included