Master page changes in different site collection.

 Hi,
I have one requirement for master page changes. i have two site collections ABC and XYZ , When navigate sites the master page  it will changes automatically. how to develop this requirement.

Is your requirement is to have different master page for different site collection. If so, refer to the following posts for more information
http://sharepoint.stackexchange.com/questions/94216/how-to-deploy-masterpage-to-entire-site-collection
https://support.office.com/en-in/article/Customize-a-master-page-to-brand-your-site-0a57b837-4c97-4af9-a088-fedf3dfd1dd5
Cheers,

Similar Messages

  • Event Receiver for all Page Libraries in a Site Collection

    We have a single site collection with many different page libraries.  I'd like to create a single event receiver for ALL page libraries in the site collection (850- Page Library).  Can you do this?
    The event receiver will essentially remove/expire something we have stored in the System.Web.HttpRuntime.Cache.  We are caching the content in the Page Library and would only like to expire the cache when a new page or change is performed on some
    content in the page library.

    Hi,
    We can create a new feature and add an event receiver to the feature for all Page Libraries.
    For more information, you can see the link below:
    http://msdn.microsoft.com/en-us/library/ee231604.aspx
    Here are two similar threads for you to take a look at:
    http://sharepoint.stackexchange.com/questions/37555/how-to-add-event-receivers-to-all-the-lists-in-a-site-collection
    http://social.technet.microsoft.com/Forums/en-US/f1297543-9035-49d6-9299-d82f546eeddd/event-receiver-for-specific-list-fires-for-all-lists-on-site-collection?forum=sharepointcustomizationprevious
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Template.xsn. Access to locations on different site collections is blocked for security reasons

    I am using sharepoint 2010 onpremise.
    I created a custom list, content type and columns. After this I go to the list and click on the infopath button in the ribbon to customize the form. I changed the form and published to the server.
    Now I get this error when I go to some page where I have added a infopath webpart:
    The following location is in a different site collection:
    http://www.myCompany.nl/someSubsite/Lists/VraagEnAntwoord/VraagEnAntwoord/template.xsn. Access to locations on different site collections is blocked for security reasons. For more information, contact your site administrator.
    This website has anonymous access.
    I have googled and found many people with this problem, but I dont find some solution. Someone talk about create a template from infopath and then publish it to a content type. I dont understand this solution. Can someone help?

    You are actually running an older version of Firefox (8). You should update to Firefox 9.0.1 and see if that helps

  • Master pages not applying to site and subsites

    I am having an issue with a master page not applying to a site and subsites. The site is created using the community template and has the following hierarchy:
    TopLevel: SharePoint Central - server/SPCtrlv2/sitepages/welcome.aspx (webpart page)
    subsite1: Community - server/SPCtrlv2/community/sitepages/categories.aspx (community template)
    subsite2: Learn - server/SPCtrlv2/learn/pages/default.aspx (publisher template)
    subsite3: Showcase - server/SPCtrlv2/showcase/default.aspx (blog template)
    The community site was created and then the Welcome page was changed to point to the Welcome.aspx location. (not sure if that matters) When making the application from the top level via Site Settings > Look and Feel > Master Page > dropdown from
    Site Master Page (SPC_Global), the master is only applying to the Learn sub site. In SP Designer, the master page/ css files are not showing although they are on the site. (Using designer 2010)
    I was able to apply the master with no problem when the top level used the publisher site template. Unfortuately, the community template is not available at the sub site level so we created a new site with the community template at the top.
    Any guidance you can provide is much appreciated

    Hi,
    According to your description, you want to apply master page to all sub sites.
    Did you use SharePoint 2010 or SharePoint 2013?
    If you use SharePoint 2013, you may need to use SharePoint Designer 2013 to find the master page file.
    For applying master page to all subsites, I suggest you do as the followings:
    1. Make sure you have enabled the “Reset all subsites to inherit this site master page setting” in the Top Level “site
    setting”->”site master page setting”.
    2. Check whether you have enabled “Inherit site master page from parent of this site” in the “site setting”->” site master page setting” of each sub site.
    There are some detailed articles for your reference:
    http://davecoleman146.com/2011/06/28/apply-master-page-for-all-subsites-in-sharepoint-2010/
    http://msdn.microsoft.com/en-us/library/office/jj862339(v=office.15).aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to create link of a document in a different library (in different site collection) - programmatically

    Hi,
    am trying to create link of a document in a different library (in different site collection) using SharePoint Link a document Content type approach. i have already tested this manually.  
    As per my requirement i need to implement this approach through code.
    If anyone has implemented link a document approach through code, please share your inputs.
    help is highly appreciated!
    thanks

    Check if below helps:
    http://blogs.msdn.com/b/cliffgreen/archive/2008/06/23/creating-a-link-to-a-document-item-in-a-sharepoint-document-library-programmatically.aspx
    http://stackoverflow.com/questions/15625448/create-a-link-to-a-document-in-a-sharepoint-shared-document-list-using-powersh

  • How to publish an Admin-Approved InfoPath template to 2 different site collections, and retain same internal column names

    Hi,
    I am wondering how best to publish an InfoPath form as an Admin-Approved template, to both Site Collection 1 (SC1) and Site Collection 2 (SC2). Some fields are promoted to SharePoint columns.
    I have already published my form to SC1, by choosing Publish to SharePoint Server > chose SC1 > Admin-approved > chose to publish to columns I had created manually on SC1 (these columns had relatively user-friendly internal names such
    as 'Form_x0020_Status' etc, which I reference in xsl + code). I then uploaded the template in Central Admin as Admin-Approved, and activated the feature on SC1. This all worked fine.
    However, if I then go to activate the feature on SC2, it creates columns with different internal names (GUIDs), which means my xsl + code won't work. If I try creating columns manually on SC2 before publishing, it still creates new GUID columns.
    This of course must be because on feature activation on SC2, it cannot find the exact columns specified in the template (which was published to SC1), so it creates new ones.
    In that case, what is the best way to publish an Admin-Approved template to 2 different site collections? One option is to create the columns using code, and deploy them to both sites as a feature, ensuring all IDs are the same. But should this be necessary, is
    there any option available using only InfoPath and SharePoint?
    Thanks for reading.

    Check these similar threads
    Republish
    existing InfoPath Form to a different SharePoint Site
    How
    to Programmatically Publish an InfoPath 2010 Template (.xsn) to Multiple SharePoint Sites
    Hope it will help
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • SharePoint Workflow - Update Item in a different Site Collection

    We have a requirement where if an approver approves an item (say in List 1 in Site Collection A), a certain Date column has to be updated on another item which is on a different site collection (say in List 2 in Site Collection B). I think I cannot use a
    SharePoint Designer(SPD) workflow in this scenario as SPD Workflows cannot access an item in a different Site Collection.
    I can think of 2 approaches -
    Approach A - Create a workflow in Visual Studio which initiates an approval workflow when an item is added to List 1. If the item is approved, update the corresponding related item in Site Collection 2. Can I do this? Can a Visual Studio workflow access
    item in a different site collection? Both Site Collections are in the same web application.  
    Approach B - The other approach is to create a SPD workflow for approval and create an Event Receiver on the same list which updates the date in the related item on a different site when the items stats is approved.
    I feel approach A is better if can be done as we a single workflow taking care of the entire process. Please let me know if this can be done using a VS workflow. Any other approaches are also welcome.
    Thanks in advance.

    Haven't tried myself, but it could be worth trying out the Call Web Service Action in SPD and update the list in the other site collection with a REST Call.
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/05/how-to-work-with-web-service-using-call-http-web-service-action.aspx
    Kind Regards
    Bjoern
    http://www.sharepointviking.com
    Twitter: Follow @bjoern_rapp

  • The following location is not accessible, because it is in a different site collection

    Hi,
    I have an InfoPath full trust form which has been uploaded to the Central Administration. I activated the form in a Form Library using Content Management. Unfortunately, when I try to load the InfoPath form in the public machine, it throws for the error below:
    The following location is not accessible, because it is in a different site collection: http://109.91.111.45:8080/sites/sbc/Success/Forms/AllItems.aspx.
    Can someone please help?

    Please read the below scenario may be what LarsLL & Derek are referring to.
    For Example:
    Consider a Farm where we have one App server & one WFE. If we create a Web Application  in App Server the url will be like
    http://<<appServerName>>:12345/
    We can access the site using the WFE name also like this
    http://<<WFE ServerName>>:12345/ but when the user tries to access the form from this site we may get this error.
    To resolve this create an Alternate Access Mapping for the site at
    http://<<WFE ServerName>>:12345/ to ensure this site can be resolved by InfoPath.
    Cause:
    This happens when InfoPath tries to load the Form. It would try to verify if the Site collection exists. Read the article here
    http://support.microsoft.com/kb/981854 for more information.

  • How to attach a default master page to a aspx site page ?

    Hi
    I make a aspx file in the sharepoint designer 2013, and I place a hyperlink inside the form.
    It do well
    Then I try to attach a master page.
    In the sharepoint designer menu I click at the style button, then click at the attach button and select
    the default master page "oslo"
    But when I open the site in the internet browser, the site comes with an error.
    Below here is the code before and after attaching the master page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ Page Language="C#" %>
    <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled 2</title>
    <meta http-equiv="X-UA-Compatible" content="IE=10" />
    <SharePoint:CssRegistration Name="default" runat="server"/>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:HyperLink runat="server" id="HyperLink1">HyperLink</asp:HyperLink>
    </form>
    </body>
    </html>
    %@ Page Language="C#" masterpagefile="~masterurl/custom.master" title="Untitled 2" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content id="Content1" runat="Server" contentplaceholderid="PlaceHolderUtilityContent">
    <form id="form1" runat="server">
    <asp:HyperLink runat="server" id="HyperLink1">HyperLink</asp:HyperLink>
    </form>
    </asp:Content>

    Hi,
    According to your post, an error occurred when you added the master page to a aspx site page.
    Please do as follows:
    1. Use "~sitecollection/_catalogs/masterpage/custom.master" instead of "~masterurl/custom.master" .
    2. Remove the form tag.
    Code:
    <%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WikiEditPage" MasterPageFile="~sitecollection/_catalogs/masterpage/custom.master" MainContentID="PlaceHolderMain" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <asp:HyperLink runat="server" id="HyperLink1">HyperLink</asp:HyperLink>
    </asp:Content>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Changing the default site collection

    Hi,
    We have two site collections on a dev box. Is there an easy way in central admin or through powershell scripting to change the default site collection?
    thanks,
    Sherazad

    What do you mean by 'Default' site collection?
    If you mean the one that is at the root of a Web Application you would need to move the one there to a new path using Move-SPSite, then move the other one to the root location and (assuming you want a straight swap) move the original root site collection
    to the path previously used by the other one.
    You could backup and restore the sites but that's a bit more effort and confusing imo.
    http://technet.microsoft.com/en-us/library/ff607915(v=office.15).aspx

  • WSP Package Deployment to a Different site collection

    Hi All,
    I have 2 different site collections on one web application , while deploying the WSP package iam not able to see the new sitecollection i have created in the dropdown selection list.
    Please advise if iam missing anything or advice if we have powershell commands to deploy directly to the diff site collection.
    thanks.SS

    I am assuming that you want to deploy sandbox solutions, then you can use Add-SPUserSolution and Install-SPUserSolution
    powershell commands to add and deploy the WSP to a specific site collection
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-deploy-a-sandbox-solution-using-powershell-in-sharepoint-2010/
    If it is a FARM solution (not specific to site collection, it will always get deployed to web application or globally deployed), you can use Add-SPSolution and Install-SPSolution
    commands
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Why sometimes Master Pages change/shift content on Content Pages???

    I come to you with another conundrum. I hope one of you have seen something like this happen before!
    Each month we create a newsletter and then we brand it for our various clients - each client getting a different header/footer on all the pages. So we created MasterPages for each client, and when it comes time to export, we apply the Client Master Pages to the content pages and export for each client separately.
    However, we have SO many problems with this because inevitably SOMETHING changes in the process. And I am determined to figure out why.
    Here is what the bottom of the page looks like. in this particular troubling document. This has our own master page applied to it.
    Then when we apply a client's master page, BAM - this happens.
    See that odd white space?  The blue rectangle that the More Information is sitting on top gets PUSHED DOWN for no apparent reason.
    I have investigated all of the master pages. There are no extra pieces of anything. Yet all of the master pages are doing this and I can't figure out why.
    I've looked at the layers situation - there's nothing weird about how the layers are set up. I've even tried locking the content layer but this still occurs.
    WHY does this happen?
    The only way I've found to stop it is to GROUP everything in that section on the page before applying the masters.
    But I'm trying to understand why this would happen?
    Where should I look for anomalies? Would there be something about the grid or baseline grid I should check on the master pages vs the content pages? Is there some check mark somewhere I'm not thinking of?
    I just am totally baffled since there's NOTHING in the middle of the Master Pages that would be affecting the colored box like that.
    Any ideas, you brilliant people?? You guys have helped us solve other puzzles in the past and we are grateful for any light you can shed on this issue!

    It would be important to see WHAT is on that master page? What is on the page?
    Do you work with layers? This is very important! Are all items on the very same layer in both versions?
    Do you work with paragraph and object styles? It is a must do!

  • How to upload only Master Page changes to server

    Hi guys
    I've been working on a massive website. It started out as a small brochure style website, but has now grown to a multitude of subpages and categories, etc. I exported the Muse site to html and started working in Dreamweaver, creating all the extra subpages, etc.
    The client has now made changes which has to be done on my master page in Muse. I have done these, exported the site to a new location, and thought it will be as simple as uploading the CSS for the master page to the server to see the changes. It's not working.
    Any ideas on how to upload only the changes I made to the master page to the web server?
    Thanks

    Actually, Muse master pages and BC templates and fundamentally different in some key ways. While you can create a BC template using Muse, a Muse master page is not uploaded as a BC template.
    svendextro, as Brad stated, once you edit outside of Muse you give up the ability to further edit within Muse. The content and settings on a master page are part of the code generated for each page. There is no independent master page in the generated code that could be modified in the way you're expecting.

  • How can I create a custom feature, which will automatically take a custom master page while creating a site ?

    Hello ,
    I am new in Sharepoint development . I am trying to create a Sharepoint feature to Activate master page automatically while creating the site .Below mentioned code I am using to do this . 
    But When I am creating any site under site collection .It is not applying automatically . I have to manually Activate that feature . 
    SPSite site = properties.Feature.Parent as SPSite;
    SPWeb rootWeb = site.RootWeb;
    Uri masterUri = new Uri(rootWeb.Url + "/_catalogs/masterpage/mycustom.master");
    rootWeb.MasterUrl = masterUri.AbsolutePath;
    rootWeb.CustomMasterUrl = masterUri.AbsolutePath;
    rootWeb.Update();
    How Can I create a feature that can activate the master page at same time of site creation under Site collection ,Without any manual work .. 
    Thanks in Advance .. 

    Hi,
    You can associate master page during feature activation as follows:
    http://social.technet.microsoft.com/wiki/contents/articles/19933.sharepoint-2010-set-a-custom-master-page-during-feature-activation.aspx
    Then, you can use feature stapling to apply automatically on site creation:
    http://blogs.msdn.com/b/kunal_mukherjee/archive/2011/01/11/feature-stapling-in-sharepoint-2010.aspx
    Thanks,
    Avni Bhatt

  • Custom Master Page changes wont apply to few page layouts

    Dear All
    I'm having issue applying custom branding to SharePoint 2010 sites.. Branding works overall fine but it doesn't apply to few pages.
    For example if I click on Enterprise and Metadata Keyword Settings in Document library the changes are not applied. I notice it's a page called metadatacolsettings.aspx in layouts and I see it references application.master.. Similarly I see couple
    of other pages out of sync and all of them have application.master as Master Page..
    Any ideas why this could be happening.. Please let me know
    Thanks

    Hi,
    pls check below links
    There are a few things to consider.
    Have all page layouts / master pages been checked in and published / approved?
    Have you created a new page using the custom page layout?
    Are you creating or modifying this content?
    Keep in mind, the progression of rendering goes as follows:
    masterpages determine the ASP.NET structural layout.
    Page Layouts determine the SharePoint structural layout based on the masterpage ASP.NET structural layout.
    Your .aspx pages determine what content to display based on the Page Layout SharePoint structural layout.
     https://social.technet.microsoft.com/Forums/sharepoint/en-US/00d354cd-e49b-429f-8648-50251e1b39a0/changes-to-page-layout-not-refelected-when-using-custom-master-page?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for