Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Changing the master page url property?

  Asked By: Eddy    Date: May 25    Category: Sharepoint    Views: 2903

Seems all pages read from this
MasterPageFile="~masterurl/default.master".............how do I change

I know I could change it in every aspx file but I think there might be
a config file or some other way to change this "token"
or "property"............Is this correct? If so, where?

I also know that you can change it via code but where would this code
go? How would it execute for only specific site definitions?



6 Answers Found

Answer #1    Answered By: Victoria Bell     Answered On: May 25

You can modify the ONET.XML file  for that site  definition and should be able to get it done. You can change  the folder/path and filename in the settings.

Answer #2    Answered By: Cassidy Sharpe     Answered On: May 25

but I don't see anything in the ONET.XML for that or any site  
definition. Is this a node I need to add or an I missing something?
I looked did a search for the word master  and settings but nothing
was found.

Answer #3    Answered By: Peter Peterson     Answered On: May 25

Make sure you are looking in \60\TEMPLATE\1033\STS\XML\ONET.XML

Toward the bottom, there is a <Modules> section. The <File> tag has an attribute, Url, that has the filename, and the path info is scattered throughout the document. Look for any Url or Path attributes. If you run a search, look for "Home" or any other path keywords that you would see from the address bar browsing your site.

Answer #4    Answered By: Hans Weiss     Answered On: May 25

60....I thought all of the file  for the new version were in the 12
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\1033\STS (here I only have a doctemp folder)

here is where the onet.xml is for the new version of WSS (v3.0)

C:\Program Files\Common Files\Microsoft Shared\web server

Are you sure we are both talking about "the beta version WSS v 3.0"?

Answer #5    Answered By: Alison West     Answered On: May 25

Nope...didn't know that is what you were talking about. I still haven't been able to get V3 up and working quite yet. Hehe...guess we all need to start actually specifying which version we are talking about. ;) If I can get it up soon, I'll dig something up for you.

Answer #6    Answered By: Freddy Heath     Answered On: May 25

No problem, I guess I should have specified the version, I just
thought since it was a master  page question and WSS v 2.0 didn't have
master pages, whoever replied to the post would assume I was talking
about v 3.0 but you know what they say about assumptions.

Thanks anyway and if you find out how to change  this in WSS, please
let me know.

FYI, in MOSS it's in the UI under site  settings but I don't see it
anyway in WSS.

Didn't find what you were looking for? Find more on Changing the master page url property? Or get search suggestion and latest updates.