Tag Info

Hot answers tagged

4

How about something like this: <script type="text/javascript"> _spBodyOnLoadFunctions.push(function(){ ExecuteOrDelayUntilScriptLoaded(showStatusAlert, "sp.js"); }) function showStatusAlert(){ var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var list = web.get_lists().getById(_spPageContextInfo.pageListId); var ...


2

You can't really get the SharePoint master page, but you can inherit the look and feel of SharePoint by using the 'Chrome Control'. Here's a walkthrough: http://msdn.microsoft.com/en-us/library/office/fp179916(v=office.15).aspx


2

Turns out that when I was saving a site as a template, SharePoint forgot to put the CustomMasterUrl attribute into the configuration section of the ONet.xml file. I had to export the site template (as a WSP file) and import that file into Visual Studio 2010. Then I added the missing attribute, so the full string was as follows: <Configuration ID="0" ...


2

A Site Collection cannot have a Parent Site Collection, A Site Collection can only have child Sub-Sites. So to answer your questions: 'test.mycompany.net' is not a parent to the other site collections. It didn't inherit because there is no parent-child relationship. Only subsites would be able to inherit the masterpage. In order to 'share' a ...


1

You can't change the .master file when it's bound like this, you can only edit the .html file. It will re-generate the .master when you save the .html. This is due to the Design Manager packet in SP2013. Here's the MSDN article on this feature set: http://msdn.microsoft.com/en-us/library/office/jj822363(v=office.15).aspx


1

By Default you can not use different css for modal popup. Add the s4-notdlg class to the elements you don’t want to render in a popup. Using javascript you can find the page is either opened in modal popup or full window based on the situation you can apply or load different CSS. isDlg=1 is added in the URL if it is opened in a modal popup.


1

To prevent users from customizing master pages on your SharePoint sites, you can uncheck the Enable Customizing Master Pages and Layout Pages on one or both of the SharePoint Designer Settings pages. When this option is disabled, users will no longer see the Master Pages or Page Layouts links in the Navigation pane of SharePoint Designer. SharePoint ...


1

I'd suggest adjusting the width rather than the height to remove the horizontal scroll bar in your inline style. Try reducing the value of width and see if the scroll-bar disappears. Alternatively, don't specify a width at all. However, if you do require a fixed width layout then the following article might prove useful. ...


1

By default your app will use the app.master regardless of what the host is using. Microsoft at this point expects the host is using its default master pages and your app will loom similar with app.master or you can use chrome control to get a similar look but modify as required for the App. Note this is still independent of the host. Microsoft has posted ...


1

SharePoint 2010 and 2013 scroll within a div called s4-workspace not within the parent window. Based on looking at your script coming from 2003, I think this might need a major re-work... Here are some examples of other questions that have dealt with scrolling issues that have a lot of good background on how scrolling works in modern installations (since ...


1

Maybe my answer is a bit late, but it might help some else.. I agree with Paul that it depends on how you activate the look. A composed look consists out of the composed look item (in the themes gallery) as well as the actual resources required for the look (.spfont, .spcolor, .master, etc.). The composed look item is there so the composed look is ...


1

This is expected behavior: The Site Master Page, affects Publishing Pages (/Pages) The System Master Page, affects Wiki Pages (/SitePages) http://blogs.technet.com/b/stefan_gossner/archive/2011/04/13/site-master-page-vs-system-master-page.aspx



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