Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

site definition and onet.xml

  Asked By: Diamond Stein         Date: Sep 08, 2009      Category: Sharepoint      Views: 385
 

I have looked at the Microsoft instructions for customizing the drop
down menus and other items using the ONET.xml file.
(msdn.microsoft.com/.../en-
us/spptsdk/html/tsptAddingContextMenu.asp) This involves adding
another javascript file to the template to override the default and
is accomplished by the tag below:

<Project Title="Team Web Site" ListDir="Lists" xmlns:ows="Microsoft
SharePoint" CustomJSUrl="/_layouts/[%
=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%]/custom_
ows.js">

My problem is that I don't know which site definition to modify.

The instructions state to find the file in the path that corresponds
to your site definition. There are a number of folders in there with
names like SPS, STS, SPSSITES, SPSNHOME, etc. etc.

I have made WSS sites using the team template and the document
template. Which site definition are these using? I have tried
changing 3-4 of them and cannot get the change to show up unless I
modify the ows.js file directly. (Yes, I have restarted IIS after
each XML change and tried making a new site).

Any idea where these are documented and how to get the change to
apply to a site?

Tagged:          

 

2 Answers Found

 
Answer #1       Answered By: Viviana Rollins          Answered On: Sep 08, 2009       

I figured out where the definitions are documented. But still no
luck applying the change  to an existing site.

Definitions in:

\Program Files\Common Files\Microsoft Shared\web server extensions\60
\TEMPLATE\1033\XML\WEBTEMPSPS.XML

 
Answer #2       Answered By: Erika Price          Answered On: Sep 08, 2009       

Don't you understand the point of the discussion forum.

 
Didn't find what you were looking for? Find more on site definition and onet.xml Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].