Hot answers tagged master-page
3
Starter Master Pages is a great resource for learning about SharePoint 2010 master pages and a good starting point for SharePoint 2010 branding projects
From _starter_publishing.master
<!-- s4-ca is the main body div -->
<div class="s4-ca">
<div class="s4-notdlg">
<!-- links for I like it and Tags and Notes ...
3
Why would you not use the fact that _catalogs is a virtual directory in SharePoint and reference it like this:
<scrit type="text/javascript" src="/_catalogs/15/masterpage/Display%20Templates/Filters/Filter_Default.js">
</script>
(notice the slash at first, and the 15 telling Sharepoint to look at the 15 hive instead of the 14 hive from 2010)
...
1
You have the option in the Page layouts and site templates page in New Page Default Settingssection. Select the page Layout that you need to set as default in Select the default page layout
For new subsites,
Write a feature stapler which sets your desired page layout on default.aspx, while the web provisioning process.
or
Create a custom web ...
1
I've found an article here that gives a decent explanation of how to make the Dreamweaver connection work, which does in turn solve the major issues. There are a couple parts of it that I don't think are really necessary, but the gist of it is there. Here are my observations:
1) Building up from a minimal master is not ideal for those who aren't comfortable ...
1
I love these puzzles :)
I think one way to do it (first way that comes to mind) is a custom Provisioning Provider for each template type (you specify this in the WebTemp...xml file) - you'll need one class per web template to set the masterpage after the ApplyWebTemplate() method call. I don't think there's a way to pass the Provisioning Provider any ...
1
write javascript on page or place content editor webpart on page and linkup with your js
<script src="jquery file path" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
// do whatever operations with any element
$('#s4-workspace').hide();
$('#s4-workspace').show();
...
1
Sure you can, almost all of the elements from the masterpages has an id and / or multiple classes that can help you identify them with jQuery.
Use the Content Editor WebPart and add your scripts in the HTML window of the webpart.
To identify the ID:s for specific elements in the DOM I recommend you to just inspect the page with the developer tools in your ...
1
As the SpEvilGenius already sugested the actual master page is referencing some custom control which was most likely deployed in the original location (some assemblies for sure deployed on the original farm) and no longer appears in the SafeControls section of the web.config.
If that master page was copied from somewhere, make sure you validate all ...
1
You can try to use the Javascript Client Object Model for the same. Since you want to have it in the top navigation, that means it will be available in all the pages, so you can simply write the html inside the masterpage in the top navigation area
function loadSites()
{
var context = new SP.ClientContext.get_current();
var web = ...
1
I wanted to do the same thing to ensure that all subsites had the same style as my main site. I too could not use SPD due to lack of administrative privaleges at my work PC. What I did was create my own CSS file in notepad. To do that I used one of the defaults in the "Style Library" folder. Once edited I uploaded my CSS file to the "Style Library" ...
Only top voted, non community-wiki answers of a minimum length are eligible

