Hot answers tagged

12

There are two kind of master pages in SharePoint Site Master Pages: used by all publishing pages – and only by publishing pages System Master Pages: used by everything else including forms and view pages You cannot change the default behavior – but you can use SharePoint Designer to change the master page assignment for individual pages if required. If ...


5

You can use ~sitecollection instead of ~Site <SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" /> For html master page, it will be: <!--SPM:<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" />-->


4

Typically I create a module to host master pages, deployed to _catalogs/masterpage, a mapped layouts for css and a mapped images for images. If you want to store at the site level, you can use modules for that too. e.g. mp module <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module ...


3

Yes, the Links in the QuickLaunch are static, but... You can make a link to a static Redirect Page (or Custom APSX Page), where you extract the link to OneDrive and redirect to it with window.location= They will see a blank page.. or make a nice redirect text (just in case somewhting goes wrong in your script)


3

The best is : make a copy of your seattle.master (custom_seattle.master) add your js reference in a scriptlink tag <SharePoint:ScriptLink Language="javascript" Localizable="false" Name="/_layouts/JS/myFile.js" runat="server"></SharePoint:ScriptLink> in the head of your masterpage put your js file referenced in the masterpage in the Layout ...


3

You can also use the SharePoint Color Palette Tool. It helps to build your custom colors or just make a copy and adjust one of SharePoint own palettes.


3

You should be able to insert your HTML code in a copy of the default master page you are already using, download it locally and and then publish it and set it as masterpage for your sites using O365 dev PnP Powershell cmdlts. As i'm not using O365 myself i haven't been able to try it out but should be doable. OfficeDevPnP.PowerShell Commands There are ...


3

That is possible but you will have to use a trim control and custom script in the master page to append the recycle bin to the menu. Something like this will do the trick <SharePoint:SPSecurityTrimmedControl PermissionsString="ManageWeb" runat="server"> <script type="text/javascript"> document.getElementsByClassName('root ms-core-...


3

It's for SharePoint 2010 Please follow the below steps: Go to root level In Site Collection >> Site Actions >> Site Settings >> Site Collection Administration section >> Site collection features There is one feature named SharePoint Server Publishing Infrastructure >> Click 'Activate' button Then go to subsite Site Actions >> Site Settings >> Look ...


2

The quick and dirty version (no external CSS file) $webApp = Get-SPWebApplication http://****:26611/ $webApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"> <a class="ms-core-brandingText" style="color:white" href="/" >Wp</a></div>' $webApp.Update() Might need an !important, I'm not connected to a farm to try it ...


2

reference Search for ID="PlaceHolderTopNavbar" Bring the Sharepoint:AspMenu control outside of this placeholder and delete asp:ContentPlaceHolder tag


2

You can try following taken from here. It is recommended for adding in html master page. <!--SPM:<SharePoint:CssRegistration ID="CSSCustom" Name="&lt;% $SPUrl:~sitecollection/SiteAssets/css/FileName.css %&gt;" runat="server" After="Themable/corev15.css"/>--> I did this in ugly way! <link rel="stylesheet" href="/sites/IFICTeamSite/...


2

You can't set it globally but what you can Download your master page Download all design files like css & js Now upload everything in your new site collection and also publish. PS: as your environment is SPO, you can utilize Designer Manager.


2

In SharePoint 2013, you have the flexibility to use HTML file to edit the master page and it will be converted to .master file automatically. That means you can edit the .html version of master page in any Editor (Text editor or Html editor like Notepad++, Dreamweaver, Visual Studio etc.). During editing you can place different SharePoint controls on ...


2

This is a known issue that was resolved with the May 2015 Cumulative Update. Or, you can apply KB3039703 if you don't want to apply the full CU.


2

Get full qualified assembly of SharePoint solution from visual studio using following steps: Open Visual Studio Go to Tools –> External Tools –> Add Title: Get Qualified Assembly Name Command: Powershell.exe Arguments: -command "[System.Reflection.AssemblyName]::GetAssemblyName(\"$(TargetPath)\").FullName" Check "Use Output Window". ...


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 ...


2

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

You have to go to Site settings in your team site you have created. Goto site settings >> under look and feel >> click on site theme >>inherit theme from parent site. find the screen shot below


2

Design Manager (feature which enables HTML to masterpage conversion) is not available in Team Sites as it requires Sharepoint Server Publishing feature to be enabled. If you want to enable it: Open Site Settings, Click on "Site collection features" under Site Collection Administration. This will open Site Collection Features page. Search for "SharePoint ...


1

The problem is your usage of ServerRelativeUrl. ServerRelativeUrl always starts with / and ends with the rest of the URL to the site. For instance, server-relative URL of http://server/sites/site01 is /sites/site01 (no ending /). However, in the case of a root site collection (i.e. http://server), the server-relative URL is simply /: it starts and ends ...


1

Assuming $site_url is defined correctly, add /'s to your MasterUrl and CustomMasterUrl as following: $site = Get-SPSite $site_url foreach ($web in $site.AllWebs) { $web.MasterUrl = $site.RootWeb.ServerRelativeUrl + "/_catalogs/masterpage/custom.master"; $web.CustomMasterUrl = $site.RootWeb.ServerRelativeUrl + "/_catalogs/masterpage/custom.master"; ...


1

If you have different permission levels for each of those group, you can wrap your content in an SPSecurityTrimmedControl. This will show/hide content for users based on their level of access. Unfortunately this will not work based on group name, only the resulting permissions that users have from being in a group, so if both groups have the same ...


1

This can be done with the SPSecurityTrimmedControl if there is a permission difference in the 2 groups. <ul> <SharePoint:SPSecurityTrimmedControl PermissionsString="OpenItems" runat="server"> <li>Option 1</li> </SharePoint:SPSecurityTrimmedControl> <SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" ...


1

The elements in positions X and Y which you are looking for are generated on the fly. You will not find the source of them in the seattle.html. Position X: Its nothing but inside the SuiteBar which lies in div with ID ms-designer-ribbon. source in seattle.html Above image clearly indicates that there is no source for what you are looking. The ...


1

Try something like this - Target the "s4-ribbonrow" div Hide this div, may be by using inline-style Locate the end of "s4-ribbonrow" div Add this snippet after that div - < Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages"> < script type="text/javascript"> document....


1

Also you should have preview file for your custom theme. For example: mymaster.html mymaster.master mymaster.preview


1

You can update Master page of any site using powershell by using following code $site = Get-SPSite http://sp:2000/sites/Ex15 foreach ($web in $site.AllWebs) { $web.MasterUrl = $site.RootWeb.ServerRelativeUrl + &quot;/_catalogs/masterpage/oslo.master&quot;; $web.CustomMasterUrl = $site.RootWeb.ServerRelativeUrl + &quot;/_catalogs/...


1

You can update Master page of any site using powershell by using following code $site = Get-SPSite http://sp:2000/sites/Ex15 foreach ($web in $site.AllWebs) { $web.MasterUrl = $site.RootWeb.ServerRelativeUrl + &quot;/_catalogs/masterpage/oslo.master&quot;; $web.CustomMasterUrl = $site.RootWeb.ServerRelativeUrl + &quot;/_catalogs/...


1

SharePoint pages are, by default, associated with site definition files. When a master page is customized in SharePoint Designer 2010, it is no longer associated with the site definition. This can result in additional administrative work following future updates or upgrades to SharePoint, which is why you see this message. You can always reset the ...



Only top voted, non community-wiki answers of a minimum length are eligible