Custom Site Definitions in MOSS 2007 (Tip!)
Aug 16
Did you know you can create your own tab for organizing your custom site definitions? The tabs I am referring to are located on the new web/site page ( _layouts/newsbweb.aspx).
A big thanks to Todd for originally sharing this tip.
To add your own tab you will want to add your own unique DisplayCategory attribute to the configuration section of the WEBTEMP*.XML file for your new site definition.
Example Code:
<Configuration ID=”2″ Title=”Sample Document Workspace” Hidden=”FALSE” ImageUrl=”/_layouts/images/dwsprev.png” Description=”This sample template creates a site for colleagues to work together on documents. It provides a document library for storing the primary document and supporting files, a Task list for assigning to-do items, and a Links list for resources related to the document.” DisplayCategory=”Shane’s Site Definitions” >
</Configuration>

I hope it helps,
RSS
Aug 29, 2006 @ 13:22:50
piss pack
i have having issues with sharepoint designer. suddenly i can’t check in/out pages when I try and revery is says page is missing…
Mar 12, 2007 @ 08:00:03
I am working on a project where any sites to be created are based on a user’s subscribed role. For example, only people in a certain profile are allowed to create Wikis & Blogs, while everyone should be able to create a generic team site. We have started by hiding all the default site definitions so that the newsbweb page shows absolutely nothing, and then we save our various site templates as packaged stp files, which we then secure with item-level permissions – this prevents people from being able to create a site from a definition, and forces role-based access to all the site templates we define. However, all the stp templates just show up on a tab titled ‘Custom’, and obviously – the method you have described only applies to categorizing site definitions (rather than site templates). I tried adding a element in my manifest.xml file for the site template(s) in question, but that didn’t help. Any other ideas/suggestions? Or for that matter, if I am stuck with the single tab, do you have a technical explanation as to why?
Apr 23, 2007 @ 02:18:43
i created a site definition from the scratch,
i created the webtemp.xml for it, i created the onet.xml, i also created the default.aspx page for it, and also created other aspx pages, custom web parts, all of them work properly, but when i tried to add a custom document library to my site definition, after i pressed it, it gives me an error message “Cannot complete this action, please try again”
i think this message appears, because i did not add the custon document library to my onet.xml as in STS site definition, after i did, it still the same error, i don’t know what is the error, is it because a custom one from the scratch, so maybe some conflicts hapened…!!!
really i don’t know, and really i need help, i must create it to my custom site definition, so please if you have any idea, please let me know
Regards
Aug 02, 2007 @ 17:10:49
Hi Shane,
Is there any posibility to hide default templates in programatic way ? (say feature or web part) . I don’t want to modify site definition.
Anand