WSS 3.0 And Master Pages in SharePoint Server Design and Customization  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
Jae 3/26/2007 7:12 AM PST
  Question
  Hi,
In WSS 2.0 usually I used the Site definitions in order to have Different
layout per top level site, Now in WSS 3.0 we have the Master pages. I want to
control all the layout of the de site using a sigle file (Default.master) but
when i do it i Change all the sites layout (because I'm modifying the Global)
How Could I do to have one master page for each site in the File system?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Laurent Cotton 3/28/2007 2:14 PM PST
  Answer
  Hi Jae,

Once a site is create, it doesn't use any more the physical master.page. If
you want to customize only one site master page, you have to use SharePoint
Designer to modify the site one (available in _catalogs\masterpage (Master
Page Gallery).
An other way is to create the new master.page by copying the default.master,
customized it and upload it in the site collection Master page gallery.
--

Laurent Cotton
www.bewise.fr


"Jae" <Jae@discussions.microsoft.com> wrote in message
news:9A0E7DDF-FB5C-4E7D-9418-2DD359AD2B47@microsoft.com...
> Hi,
> In WSS 2.0 usually I used the Site definitions in order to have Different
> layout per top level site, Now in WSS 3.0 we have the Master pages. I want
> to
> control all the layout of the de site using a sigle file (Default.master)
> but
> when i do it i Change all the sites layout (because I'm modifying the
> Global)
> How Could I do to have one master page for each site in the File system?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Jae 3/28/2007 2:58 PM PST
   
  Hi Laurent,
Thanks for your answer.
Do you mean thaf if I Create a Custom Masterpage and upload it in the
SiteCollection Masterpage gallery, The custom Master will be available in the
subsites?
How Can I do it?

"Laurent Cotton" wrote:

> Hi Jae,
>
> Once a site is create, it doesn't use any more the physical master.page. If
> you want to customize only one site master page, you have to use SharePoint
> Designer to modify the site one (available in _catalogs\masterpage (Master
> Page Gallery).
> An other way is to create the new master.page by copying the default.master,
> customized it and upload it in the site collection Master page gallery.
> --
>
> Laurent Cotton
> www.bewise.fr
>
>
> "Jae" <Jae@discussions.microsoft.com> wrote in message
> news:9A0E7DDF-FB5C-4E7D-9418-2DD359AD2B47@microsoft.com...
> > Hi,
> > In WSS 2.0 usually I used the Site definitions in order to have Different
> > layout per top level site, Now in WSS 3.0 we have the Master pages. I want
> > to
> > control all the layout of the de site using a sigle file (Default.master)
> > but
> > when i do it i Change all the sites layout (because I'm modifying the
> > Global)
> > How Could I do to have one master page for each site in the File system?
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Laurent Cotton 3/28/2007 11:11 PM PST
   
  Re,

Do to this, copy the original default.master.
Create a new file my.master (for example) and paste the code from the
default.master.
Customize this code to have the render you want.
When your my.master is ready, go to your site.
Go to the site collection setting then, to the Master Page Gallery
Add your master page to the gallery as you add a document in a document
library

To apply the my.master master page :
With WSS :
- Use SharePoint Designer to go your site collection master page gallery (
in _catalogs\masterpage (Master Page Gallery)),
- Right click on my.master and select "Set as defautl ..." or something
similar
With MOSS :
- Go to the site collection settings
- Go to "master page" and set the site master to my.master.

--

Laurent Cotton
www.bewise.fr



"Jae" <Jae@discussions.microsoft.com> wrote in message
news:C396C8A8-D537-4F94-8631-373403BE326F@microsoft.com...
> Hi Laurent,
> Thanks for your answer.
> Do you mean thaf if I Create a Custom Masterpage and upload it in the
> SiteCollection Masterpage gallery, The custom Master will be available in
> the
> subsites?
> How Can I do it?
>
> "Laurent Cotton" wrote:
>
>> Hi Jae,
>>
>> Once a site is create, it doesn't use any more the physical master.page.
>> If
>> you want to customize only one site master page, you have to use
>> SharePoint
>> Designer to modify the site one (available in _catalogs\masterpage
>> (Master
>> Page Gallery).
>> An other way is to create the new master.page by copying the
>> default.master,
>> customized it and upload it in the site collection Master page gallery.
>> --
>>
>> Laurent Cotton
>> www.bewise.fr
>>
>>
>> "Jae" <Jae@discussions.microsoft.com> wrote in message
>> news:9A0E7DDF-FB5C-4E7D-9418-2DD359AD2B47@microsoft.com...
>> > Hi,
>> > In WSS 2.0 usually I used the Site definitions in order to have
>> > Different
>> > layout per top level site, Now in WSS 3.0 we have the Master pages. I
>> > want
>> > to
>> > control all the layout of the de site using a sigle file
>> > (Default.master)
>> > but
>> > when i do it i Change all the sites layout (because I'm modifying the
>> > Global)
>> > How Could I do to have one master page for each site in the File
>> > system?
>>

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Jae 3/29/2007 10:08 AM PST
   
  Hi Laurent,
Thanks a lot.

I did what you said, but it doesn't work. I'm using WSS 3.0 and once I
create a new site, this new site has its own Master page galery,and its
Master page.

I cannot fix a Master page for a SiteCollection, i was trying with
~sitecollection\default.master (in the default.aspx file in the site
definition), but the System gives me an error.

In adittion this means that all masterpages are in the Database, so it is no
possible to have a Default.master in the Site Definition Folder and with
modification this file, the modification aplies to all the sites based on the
site definition


"Laurent Cotton" wrote:

> Re,
>
> Do to this, copy the original default.master.
> Create a new file my.master (for example) and paste the code from the
> default.master.
> Customize this code to have the render you want.
> When your my.master is ready, go to your site.
> Go to the site collection setting then, to the Master Page Gallery
> Add your master page to the gallery as you add a document in a document
> library
>
> To apply the my.master master page :
> With WSS :
> - Use SharePoint Designer to go your site collection master page gallery (
> in _catalogs\masterpage (Master Page Gallery)),
> - Right click on my.master and select "Set as defautl ..." or something
> similar
> With MOSS :
> - Go to the site collection settings
> - Go to "master page" and set the site master to my.master.
>
> --
>
> Laurent Cotton
> www.bewise.fr
>
>
>
> "Jae" <Jae@discussions.microsoft.com> wrote in message
> news:C396C8A8-D537-4F94-8631-373403BE326F@microsoft.com...
> > Hi Laurent,
> > Thanks for your answer.
> > Do you mean thaf if I Create a Custom Masterpage and upload it in the
> > SiteCollection Masterpage gallery, The custom Master will be available in
> > the
> > subsites?
> > How Can I do it?
> >
> > "Laurent Cotton" wrote:
> >
> >> Hi Jae,
> >>
> >> Once a site is create, it doesn't use any more the physical master.page.
> >> If
> >> you want to customize only one site master page, you have to use
> >> SharePoint
> >> Designer to modify the site one (available in _catalogs\masterpage
> >> (Master
> >> Page Gallery).
> >> An other way is to create the new master.page by copying the
> >> default.master,
> >> customized it and upload it in the site collection Master page gallery.
> >> --
> >>
> >> Laurent Cotton
> >> www.bewise.fr
> >>
> >>
> >> "Jae" <Jae@discussions.microsoft.com> wrote in message
> >> news:9A0E7DDF-FB5C-4E7D-9418-2DD359AD2B47@microsoft.com...
> >> > Hi,
> >> > In WSS 2.0 usually I used the Site definitions in order to have
> >> > Different
> >> > layout per top level site, Now in WSS 3.0 we have the Master pages. I
> >> > want
> >> > to
> >> > control all the layout of the de site using a sigle file
> >> > (Default.master)
> >> > but
> >> > when i do it i Change all the sites layout (because I'm modifying the
> >> > Global)
> >> > How Could I do to have one master page for each site in the File
> >> > system?
> >>
>
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Laurent Cotton 3/29/2007 1:40 PM PST
   
  Re,

Your right. For existing site, the master page is ghosted in the wss
database.
I know how to apply a master page to a full site collection but only by
code.

Here is the code I user to appply a selected master page from the Master
Page Gallery :

SPWeb root = SPContext.Current.Site.RootWeb;
SPList masterPageGallerie = root.Lists[new
Guid(Request.QueryString["List"])];
SPListItem selectedMasterPage =
masterPageGallerie.GetItemById(Convert.ToInt32(Request.QueryString["ID"]));
SPFile selectedMasterPageFile = selectedMasterPage.File;
root.MasterUrl = selectedMasterPageFile.ServerRelativeUrl;
root.AllowUnsafeUpdates = true;
root.Update();

I use this code from a custom action on the Master Page Gallery. This custom
action add the option "Apply this master page" option on the popup menu
item.
When the user click the link, the custom action run my page passing the
selectied item Id in the request. On previous code is run on the OnLoad page
event.

I hope this will help you.

--

Laurent Cotton
www.bewise.fr



"Jae" <Jae@discussions.microsoft.com> wrote in message
news:CAA4752B-0E94-4217-9BFD-AF31B1345F54@microsoft.com...
> Hi Laurent,
> Thanks a lot.
>
> I did what you said, but it doesn't work. I'm using WSS 3.0 and once I
> create a new site, this new site has its own Master page galery,and its
> Master page.
>
> I cannot fix a Master page for a SiteCollection, i was trying with
> ~sitecollection\default.master (in the default.aspx file in the site
> definition), but the System gives me an error.
>
> In adittion this means that all masterpages are in the Database, so it is
> no
> possible to have a Default.master in the Site Definition Folder and with
> modification this file, the modification aplies to all the sites based on
> the
> site definition
>
>
> "Laurent Cotton" wrote:
>
>> Re,
>>
>> Do to this, copy the original default.master.
>> Create a new file my.master (for example) and paste the code from the
>> default.master.
>> Customize this code to have the render you want.
>> When your my.master is ready, go to your site.
>> Go to the site collection setting then, to the Master Page Gallery
>> Add your master page to the gallery as you add a document in a document
>> library
>>
>> To apply the my.master master page :
>> With WSS :
>> - Use SharePoint Designer to go your site collection master page gallery
>> (
>> in _catalogs\masterpage (Master Page Gallery)),
>> - Right click on my.master and select "Set as defautl ..." or something
>> similar
>> With MOSS :
>> - Go to the site collection settings
>> - Go to "master page" and set the site master to my.master.
>>
>> --
>>
>> Laurent Cotton
>> www.bewise.fr
>>
>>
>>
>> "Jae" <Jae@discussions.microsoft.com> wrote in message
>> news:C396C8A8-D537-4F94-8631-373403BE326F@microsoft.com...
>> > Hi Laurent,
>> > Thanks for your answer.
>> > Do you mean thaf if I Create a Custom Masterpage and upload it in the
>> > SiteCollection Masterpage gallery, The custom Master will be available
>> > in
>> > the
>> > subsites?
>> > How Can I do it?
>> >
>> > "Laurent Cotton" wrote:
>> >
>> >> Hi Jae,
>> >>
>> >> Once a site is create, it doesn't use any more the physical
>> >> master.page.
>> >> If
>> >> you want to customize only one site master page, you have to use
>> >> SharePoint
>> >> Designer to modify the site one (available in _catalogs\masterpage
>> >> (Master
>> >> Page Gallery).
>> >> An other way is to create the new master.page by copying the
>> >> default.master,
>> >> customized it and upload it in the site collection Master page
>> >> gallery.
>> >> --
>> >>
>> >> Laurent Cotton
>> >> www.bewise.fr
>> >>
>> >>
>> >> "Jae" <Jae@discussions.microsoft.com> wrote in message
>> >> news:9A0E7DDF-FB5C-4E7D-9418-2DD359AD2B47@microsoft.com...
>> >> > Hi,
>> >> > In WSS 2.0 usually I used the Site definitions in order to have
>> >> > Different
>> >> > layout per top level site, Now in WSS 3.0 we have the Master pages.
>> >> > I
>> >> > want
>> >> > to
>> >> > control all the layout of the de site using a sigle file
>> >> > (Default.master)
>> >> > but
>> >> > when i do it i Change all the sites layout (because I'm modifying
>> >> > the
>> >> > Global)
>> >> > How Could I do to have one master page for each site in the File
>> >> > system?
>> >>
>>
>>

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Mark 4/21/2009 12:47 PM PST
   
  Hello Jae, Larent,

I'm really green behind the ears when it comes down to ASP. The above info
is great.

What I'm attempting to do is create a master page from a copy of the
origonal (1st step first) and change the link found in the TopNav to point
directly to the homepage of the site. Do note, this is a WSS_v3 site. While
looking the code over closely, I found a line stating "StartingNodeURL".
Since I am not a programmer, making sense of this is mind boggling (2 pots
of coffee and a pack of cigs have already been whiped out). Is this the
correct line to be edited?

t.i.a.

Mark

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies