Hot answers tagged

10

The short story: Usually you'll set the master page as both default and custom master page, the most common exception being a very customized master page for publishing which can't be used for ordinary pages in which case you'll only set it as custom master page. The full story: When creating pages in SharePoint your main options for setting the ...


7

Adding to iambriansreed's solution, you can put the comments in Literal controls around the SPSecurityTrimmedControls to prevent SPD from adding the extra rubbish. For example: <asp:Literal runat="server" text="&lt;!-- "/><SharePoint:SPSecurityTrimmedControl PermissionsString="EditListItems" runat="server"><asp:Literal runat="server" text=...


7

Insert <SharePoint:ProjectProperty Property="Title" runat="server"/> into the masterpage where you want it. Or if you want it like the default v4.master with a being in the PlaceHolderSiteName ContentPlaceHolder as a link, then use <asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server"> <SharePoint:SPLinkButton runat="server" ...


7

After long investigation I found solution. It is both SharePoint and IE 8 specific problem. IE 8 loads styles in different order, than IE 10. In IE 8, after my custom css, class .ms-core-needIEFilter was loaded. The class has gradient inside. I added to my custom CSS following code: .ms-core-needIEFilter #suiteBarLeft { background-color:transparent; -ms-...


7

You will need something like this: <Module Name="Masterpage" Url="_catalogs/masterpage"> <File Path="Masterpage\mynewmasterpage.master" Url="mynewmasterpage.master" Type="GhostableInLibrary" Level="Published" ReplaceContent="TRUE"> <Property Name="Title" Value="My New Masterpage" /> <Property Name="UIVersion" Value="15" /...


6

Hi custom master page is site master page used for publishing pages only and default master page is system master page, to know more please leaf through this article http://rehmangul.wordpress.com/2009/12/15/master-pages-in-sharepoint/


6

Apparently, this is a common problem (I'm surprised that nobody already had a custom solution). Apparently, this is what causes the problem: When you add a web part to the standard list views, the page is no longer classified as a list view page, but instead it is classed as an application page. Katrina over on Stack Exchange posted this solution. ...


6

This is not a bug. If you have more than one web part on a page then you must click the one you want the ribbon for.


6

Try using !important after your rule to override the inline style: #s4-titlerow{ display: none !important; }


6

I believe the only difference is their page layout and navigation. Seattle is what we're used to from 2010, and Oslo is new, moving the left nav to the top, and removing the top navigation all together. Oslo has a wider layout for your content.


5

As Sig suggested there are some changes to the way IE9 handles javascript from previous versions. I found my answer in /_layouts/1031/init.js in the function ProcessImnMarkers() (Ironically, a function you want to overwrite as empty if you actually WANT to hide the IM Presence stuff). Here is the original code of the function: function ProcessImnMarkers() ...


5

The line <Property Name="QueryPromptString">$Resources:MyResourceFile,ResourceKey</Property> wokrs fine for me. I think that you should check your resources file. This file should contain ResourceKey which you tries to use in this property. If you use correct resource file and key, the search control displays text depends on the site language. ...


5

The trickiest part of this is making sure the brand gets used for all new mysites created from this point on. To do so you need to make sure your branding conforms to a key prerequisite. Is your brand packaged up in a visual studio .wsp and can it be applied to a given site collection by activating one or more features? If so then you can apply it to all ...


5

I would advise against this...I would also advise against having an exact copy of the coreV4.css file. Having both these files is going to beef up the load times and increase the needless amount of code the browsers need to go through. Change your CSS registration to the following line. I also always add it after the CoreV4.css not that it makes a ...


5

Try adding the path, as you have done in Name also, in After. Or since you have the css files directly in the 15, remove the path from the Name property. First option: <SharePoint:CssRegistration runat="server" ID="Custom2" Name="/_layouts/15/Custom2.css" After="/_layouts/15/Custom1.css" /> Second option <SharePoint:CssRegistration runat="...


5

SharePoint has difficulties dealing with protocol-less URLs. Have you tried changing them to https?


4

The easiest and cleanest way to do this is wrap the control with html comments: <!-- <Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="CreateSSCSite"> --> <SharePoint:CssLink runat="server" Version="4"/> <!-- </Sharepoint:SPSecurityTrimmedControl> --> If the user meets the permissions then it returns: <!...


4

A simple PowerShell script would do it. There's a MasterUrl and CustomMasterUrl property on the SPWeb object, so you could just do something simple like Get-SPSite | Get-SPWeb | % {"Site: " + $_.Url + " Master: "+ $_.MasterUrl} to list out the master for every web.


4

Customizing Meeting Workspaces is not as straight forward as one could expect unfortunately (both SP2007 and SP2010). First of all you cannot use Web Templates or Custom Site Definitions because Outlook often will be the one creating the sites using web services, and it is only aware of the OOB site definitions. As i stated in comments elsewhere, feature ...


4

Since your master page is now unghosted (= customized = not anymore retrieved from the file system), you'll have a newer version. You can roll back to a previous edition (v1.0 as provisionned by MS) to put you back in a working state. Go to {Your-Site-Collection-Url}/_catalogs/masterpage/Forms/AllItems.aspx, select the v4.master, history and roll back to a ...


4

Medes, Don't remove the PlaceHolders from MasterPage, bad bad practice! As they are used by SharePoint internally to place content accordingly on the pages... Below URL gives the list of Default Content Place Holders and information that is kept into them [It is for SharePoint 2010, but I hope not much changes are there]: Working with content placeholder ...


4

You could place the whole navigation area in a ContentPlaceHolder in the master page, if it's not already in one. The ContentPlaceHolder is a control, used in master pages, which can specify content seen in all pages that uses that master page, but also allows pages to simply override this content, if they need. So, let's say you have the navigation markup ...


4

These links are loaded dynamically using the delegate controls so you wont' find these link in master page. To hide these links, add the following to your css file referenced from your master page (suggested) or add it to your master page. <style type="text/css"> #Suite_MainLink_ShellMail, #Suite_MainLink_ShellCalendar, #Suite_MainLink_ShellPeople, #...


4

If you're on on-prem environment, you can customize the SuiteBar, there's a delegate control for the SuiteBar which you can override. For SP2013 online environment, you'd need to use jQuery to add links to it and CSS for changing color, font and styles.


4

The steps for changing the colour in SharePoint Online are: Navigate to Site Content --> Style Library --> desired language Create a new CSS file (if you already have a custom file you can append to that) Add the following CSS styles #O365_NavHeader, .o365cs-nav-rightMenus, #O365_MainLink_NavMenu Change the colour to suit your theme, note because ...


4

Like Amal said, it's not easy with CSS, because FontAwesome already uses :before and :after. One possibility is to solve this with JavaScript on runtime. Try something like this: function AppendMenuFontAwesomeIcons() { var elements = document.querySelectorAll('ul[id^=zz][id$=_RootAspMenu] li span.menu-item-text'); for (var i = 0; i < elements....


4

The problem is with the use of OnDemand=true. If you set that property than you are asking Sharepoint to only load the scripts on demand i.e. when you explicitly call them. This techique is used to reduce the amount of scripts loaded at page load. When applied script can be requested to execute by using SP.SOD.execute or SP.SOD.executeFunc methods. .master ...


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



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