The master page is a feature that enables you to define common structure and interface markup elements for your Web site, including headers, footers, style definitions, or navigation bars. The master page can be shared by any of the pages in your Web site, called the Content Page, and removes need ...
2
votes
4answers
604 views
Detecting Registered Scripts on Page - ScriptLink or anything else!
I have a webpart that requires jQuery to run. Therefore, in my code I want to check if jQuery is not on the page inject it. I've got down the inject part, but the detection part it where I'm ...
2
votes
2answers
2k views
Sharepoint Master Page Powershell
We have over 80 Site Collections in our Web Application is there a way through power shell that i can set the same master page for all the site collections.
2
votes
2answers
754 views
Application pages and master pages
We plan to use SharePoint 2010 application pages and wondered about our current setup, which has the default master page (v4.master) with no changes but a heavily customized page layout for the ...
2
votes
1answer
425 views
Show site title without link
Is it possible to modify the v4.master on SP2010 so that the site title displays without a link? Here's the element from the master page:
<td class="s4-titletext">
<h1 ...
2
votes
4answers
2k views
SP2010 Reset all subsites to inherit masterpage using c#
I'm creating a site feature reciever which sets a custom master page on the root web. I would also like the master page set on the root to be inherit to all the subsites.
What is the most elegant way ...
2
votes
2answers
3k views
How to edit a sharepoint master page without using sharepoint designer?
I have a masterpage that resides on a sharepoint server, on the server designer is not installed.
Basically I want to be able to edit a master page in notepad.
Is this possible?
2
votes
1answer
402 views
Applying default.master to a custom .aspx page in the _layouts folder
I am using SharePoint Server 2007 + C# + .Net 3.5 + VSTS 2008 + ASP.Net. And I am using collaboration portal template.
I am developing a custom aspx page and put it in _layout folder of a site and I ...
2
votes
1answer
99 views
Export site as a template and master page link?
We have a site collection that have several sub webs.
In the root site, we created some custom master pages.
We linked the subwebs masterpage url (SPWeb.MasterPageUrl) to the same, centralized ...
2
votes
1answer
2k views
How do I get a subsite to inherit the main masterpage?
I have a masterpage (copy of v4.master) and I added a link to a custom css. when I create a new site it does not pick up the correct master page. How do I fix this? thanks
2
votes
1answer
38 views
Is there a way to gracefully fail when a custom tag is missing?
I need to do some specific CSS changes to the publishing section of my SharePoint site when the logged in user is a specific account. To do this, I have created a custom control ...
2
votes
2answers
664 views
2010 UI Version 3 site & application master page
I have switched a site back to use UI version 3, so this basically works as a 2007 site would.
I would expect that when accessing application pages this would use the application.master in the ...
2
votes
2answers
166 views
Verifying custom master exists before applying to a site
I have a branding solution consisting of one feature to deploy a custom master to the site collection. A web scoped feature exists in a separate solution that when activated sets the custom master as ...
2
votes
2answers
537 views
Delete custom master page error on feature deactivation
I have a feature that deploys custom master pages to all sites in a site collection on activation, and want to delete all traces of the custom master pages on deactivation. On deactivation, after ...
2
votes
1answer
137 views
Breadcrumbs Navigation Requirement Changed
Scenario
I have 20's of site in a single site collection we can say "portal A", Now I have list of site collections, let me explain it using a tree
Now we are creating breadcrumb navigation using ...
2
votes
1answer
251 views
Error when trying to auto create Personal Site (My Site > My Content)
I have created a custom master page for my sites and am using feature stapling to associate the master page with the personal site once it is provisioned (when a user first clicks the My SIte > My ...
2
votes
2answers
146 views
How can I rename Page Layouts without having to manually reset content pages using those layouts?
I need to rename a bunch of Page layouts and Master Pages without having to re-set the Page Layout to each content page that is using those layouts.
For example:
I have two page layouts - ...
2
votes
2answers
354 views
Automatically sort quicklaunch items
We can sort quicklaunch items directly on a website or with powershell (see a great tutorial here).
But is there an option to tell SharePoint:AspMenu in masterpage to automatically sort the ...
2
votes
1answer
1k views
“Attempted to read or write protected memory” exception
We ran into this error while trying to open the page /_catalogs/masterpage/Forms/AllItems.aspx. I'd been attempting to approve a page layout that I'd just updated and checked in a major version.
By ...
2
votes
2answers
743 views
Site with custom master page reverts to v4.master on upgrade
I have a web application in 2007 that contains a bunch of sites that all used a custom site definition and a custom master page (deployed using a feature). All is well.
I've upgraded the code for ...
2
votes
1answer
90 views
Master Page checked in and approved (as a major version) yet I'm still the only person that can see it
Topic pretty much says it all. I've checked in a new major version of the master page and approved it, but I'm still the only person who can see this page.
What am I missing here?
This is a ...
2
votes
3answers
397 views
Modify RichHtmlField in SP2010 Master Page?
I'd like to modify the RichHtmlField to disable the color controls in SharePoint 2010. I tried adding this to my master page:
<PublishingWebControls:RichHtmlField FieldName="PublishingPageContent" ...
2
votes
1answer
319 views
Sporadically missing “click to add a new hyperlink”
We just migrated from 2007 to 2010 and changed our stylesheets to use v4. We have a list of over 1000 items with a few "Link URL" columns. Occasionally when editing the item, the link url field would ...
2
votes
2answers
319 views
*Something* is corrupting all my aspx pages
I have a feature which deploys a master page and changes the masterpage for all webs in the site collection. This works okay usually. We've had an issue two times, where all the aspx pages in the site ...
2
votes
1answer
366 views
unable to create new fields after upgrading masterpage to 2010
I am unable to create new fields in existing lists after upgrading my 2007 master page to 2010. I get an error which says
Webpage error details
User Agent: Mozilla/4.0 (compatible;
MSIE ...
2
votes
1answer
31 views
Creating pages dynamically through code?
First thing is first, I'm doing this in Sharepoint 2013.
I'm not exactly sure what the best approach is to be, so I'm explaining my problem and hopefully people can throw around some terms or ideas ...
2
votes
2answers
77 views
How to change the master page
How can I change the master page of only one of the many sites in my 2007 sharepoint site. I do not have production site access so i cannot use designer.
Pavan.
2
votes
1answer
72 views
SharePoint root site master page
I have a root site and other site collections in same web application port
If I edit the root site master page, Will it affect other site collections in this port?
Regards,
Abraham
2
votes
3answers
499 views
Apply custom master for new site collection and sites under
This works for existing site collection and any new sites under it and their subsites BUT when I create a new site collection, well i can't even create a new site collection now as it gives me file ...
2
votes
3answers
2k views
Custom Masterpage - Background image from library
I was hoping someone may be able to guide me in the right direction. I want the header in a custom master page to have a background image that can be changed by an 'owner' in a user friendly manner.
...
2
votes
1answer
1k views
The file /sales/_catalogs/masterpage/v4.master does not exist
I use powershell to copy a site collection from production to dev. I never had issues before.
When I go to http://portal.company.net/sales I get following error
Server Error in '/' Application.
...
2
votes
1answer
509 views
Adding a Link “Advanced Search” next to ootb search
How do I add a link "Advanced Search" next to the OOTB search (top area where I see the title of the site, etc.)
Print shot is here
1
vote
4answers
1k views
How to change the Master Page URL?
How to change the sub-site master page URL while creating it (sub-site) ? By default, it uses "default.master" is on its "master page gallery" list, want to change the master page url in such a way ...
1
vote
2answers
124 views
Registering all templates in folder /_controltempaltes/custom
I have a question regarding the directives in the MasterPage. So if I deploy a custom template to ControlTemplates in SharePoint folder, to use it I
will need to write a directive which imports that ...
1
vote
2answers
4k views
How to make new sites inherit parent site's master page automatically?
I've Sharepoint 2010 Server and I have a main site, say, in http://mysharepoint.com.
I've edited its master page (v4.master) (to add some web parts, yes, web parts directly into the master page, it's ...
1
vote
2answers
446 views
Complete redesign of a SharePoint 2010
I'm working on a project where i need to do a complete redesign on SharePoint 2010, like changing colors, making it have a fixed size, align it to the center of the page, align the 'site action' ...
1
vote
3answers
2k views
Master Page file cannot be loaded when trying to edit aspx on a subsite
A while ago, we (myself and our web developer) customized our master page. We made a copy of v4.master called v4custom.master and edited it. This was at the site collection level. Just recently, a ...
1
vote
3answers
1k views
Invalid Url when programmatically setting custom master page
Has anyone had the error Invalid URL when setting the masterpage programmatically?
Using this code in a feature receiver (the feature provisions the masterpage to the gallery, that works fine)
...
1
vote
1answer
388 views
How to configure two search boxes - one for people and one for content?
I would like to have two search boxes on my master page, one that would search for content and the other one that would search for people.
I see the code in the master page that searches for content:
...
1
vote
1answer
1k views
Customizing SmallSearchInputBox default text
I am trying to customize the text displayed in the search box of my SharePoint site. The default is "Search this site...".
I found a number of articles which explain how to do it (by overriding the ...
1
vote
3answers
315 views
How do I list all masterpages using client object model
I want to get all masterpages in client object model.
For classic lists and libraries, I use
context.Web.Lists.GetByTitle(listname)
How do I do that to get the masterpage list ...
1
vote
2answers
4k views
How do I add the top link navigaton bar to the Enterprise Search Center?
The Enterprise Search Center appears to use the minimal master page, and has no top link navigation. This seems a bit silly and is hard to use if you use the Search Center as a subsite in a larger ...
1
vote
4answers
687 views
How to embed a CQWP into a master page or DelegateControl
I'm looking for a way to embed a pre-configured Content Query Web Part into a master page. In short, I have a SharePoint:DelegateControl on the master page and I want to plug the web part into it by ...
1
vote
1answer
121 views
Embedded JScript in masterpages works in Windows 2003 / fails in 2008
My colleague just reported that he developed a master page with embedded JScript using Windows Server 2003. The same master page fails to execute the JScript when used on a Windows Server 2008 ...
1
vote
4answers
2k views
How to find the master page a site is using?
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I have a root web site and some child sub-web site. I am using ...
1
vote
3answers
102 views
masterpage javascript not working while anonymous user visits the site
Explanation.
I have applied anonymous access to entire website.
My Javascript working fine while users login.
But not woking while anonymous users visits the site.
I need to execute masterpage ...
1
vote
2answers
109 views
Add script reference to all pages in a site collection when a feature is activated
I'd like to have a feature which adds a script reference to all pages in a site collection when activated.
This seems like a scenario where I should just modify the master page, but for it to affect ...
1
vote
2answers
1k views
Multiple master pages or layouts?
On a branding website, I placed header and footer in the master page. Then I created the layout for welcome page and another for sub-sites. Now, the footer in main page has an extra row (a div nested ...
1
vote
2answers
183 views
tool for finding out which Custom master page being used
I am trying to find a tool, that tells me which Custom master page is being used by a web/site, I tried google it but couldn't find anything relative.
Cheers
1
vote
2answers
686 views
Hard Coded Navigation in Master Page - Active link not changing
Prior to my arrival it was decided that all navigation would be hard coded into the Master Page. I wish I could find a solid reason why, but for the time being it escapes me. Due to time constraints, ...
1
vote
4answers
715 views
Change the page search bar redirects to per Site
My sys admin set up our SharePoint so there is basically one big site collection with many subsites run by many different people. Each site under the site collection has its own branding. When I ...



