thanks guys, I can see it's too much work and unnecessary complexity with 2 masterpages. I had different markup for footer for pages other than homepage, and will include in masterpage but do a simple display:none for rest of the sites footer in home page layout and include homepage footer in it's layout.
Cheers A On Thu, Jan 29, 2015 at 5:11 PM, Rob Bayly <rob.ba...@sharingminds.com.au> wrote: > If it's sub-sites, and not pages, then this may help. I forget where I > found the original PowerShell script - but the following may work for > updating sub-sites > > //INDIVIDUAL > PS C:\<path>> $web = Get-SPWeb http://<site>/<subweb> > //just to confirm it's set > PS C:\<path>> $web > Url > --- > http://<site>/<subweb> > //check current master page > PS C:\<path>> $web.MasterUrl > /<site>/<subweb>/_catalogs/masterpage/v4.master > //set new master > PS C:\<path>> $web.MasterUrl > ="/<site>/<subweb>/_catalogs/masterpage/NEW.master" > //check it > PS C:\<path>> $web.MasterUrl > /<site>/<subweb>//_catalogs/masterpage/NEW.master > PS C:\<path>> $web.Update() > > ALL/BATCH > foreach($subSite in (Get-SPWeb "http://<site>").Webs) > { > $subSite.MasterURL = > "/<site>/<subweb>/_catalogs/masterpage/NEW.master" > $subSite.Update() > } > > Regards > Rob > > > Today's Topics: > > 1. RE: Different masterpages in site collection (Nigel Hertz) > 2. RE: Different masterpages in site collection (Paul Noone) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jan 2015 20:46:18 +0000 > From: Nigel Hertz <nigel.he...@stockland.com.au> > Subject: RE: Different masterpages in site collection > To: ozMOSS <ozmoss@ozmoss.com> > Message-ID: > <8e9a6d933a414688a50743539f4dc...@cdcexh011.stocklandnet.com.au> > Content-Type: text/plain; charset="utf-8" > > Howdy > > Personally, I would set the one for ?the rest of the site? on the > homepage, and tell it to ?reset all subsites to inherit?. Once that?s done, > change it to set the homepage masterpage as ?live?, but DESELECT the ?reset > subsites? bit. > > There may be a better way, but that?s the way I did it. > > From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On > Behalf Of Ajay > Sent: Friday, 23 January 2015 9:30 PM > To: ozMOSS > Subject: Different masterpages in site collection > > Hi guys, > i want to use 2 different masterpages in site collection, one for home > page and other for rest of the site. > > how to go about it,,, google hasn't been very helpful > > thanks > ajay > > ________________________________ > > Stockland Notice: If this communication has been sent to you by mistake, > please delete and notify us. If it has been sent to you by mistake, legal > privilege is not waived or lost and you are not entitled to use it in any > way. Stockland and its subsidiaries reserve the right to monitor e-mail > communication through its networks. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://prdlxvm0001.codify.net/pipermail/ozmoss/attachments/20150126/9051e263/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 27 Jan 2015 01:35:42 +0000 > From: Paul Noone <p.no...@keller.com.au> > Subject: RE: Different masterpages in site collection > To: ozMOSS <ozmoss@ozmoss.com> > Message-ID: > <5ff8bf2136ad534cafdeea7bc8cbf186a68...@ms-01.keller.com.au> > Content-Type: text/plain; charset="utf-8" > > Is there any reason why you need a new masterpage for a single page? > > I find that a layout page or customizing the page can usually overcome > most situations. > > Regards, > > Paul > > From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On > Behalf Of Nigel Hertz > Sent: Tuesday, January 27, 2015 7:46 AM > To: ozMOSS > Subject: RE: Different masterpages in site collection > > Howdy > > Personally, I would set the one for ?the rest of the site? on the > homepage, and tell it to ?reset all subsites to inherit?. Once that?s done, > change it to set the homepage masterpage as ?live?, but DESELECT the ?reset > subsites? bit. > > There may be a better way, but that?s the way I did it. > > From: ozmoss-boun...@ozmoss.com<mailto:ozmoss-boun...@ozmoss.com> [mailto: > ozmoss-boun...@ozmoss.com] On Behalf Of Ajay > Sent: Friday, 23 January 2015 9:30 PM > To: ozMOSS > Subject: Different masterpages in site collection > > Hi guys, > i want to use 2 different masterpages in site collection, one for home > page and other for rest of the site. > > how to go about it,,, google hasn't been very helpful > > thanks > ajay > _______________________________________________ > Sponsored by Infotext - Amazing Search for Microsoft SharePoint - > http://www.infotext.com/ > ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss >
_______________________________________________ Sponsored by Infotext - Amazing Search for Microsoft SharePoint - http://www.infotext.com/ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss