The mechanism for hiding a Site template in SharePoint 2007 is still the same as in 2003:
- Look for the file webtemp.xml in "web server extensions\12\TEMPLATE\1033\XML"
- Make a backup copy of this file first
- Open the file in notepad and look for the site template you want to hide
- Change Hidden="FALSE" into Hidden="TRUE" (case sensitive) and save the file
- Do an IISRESET
This will hide the specific site template from the list of templates available when you create a site.
Hiding a List template in SharePoint 2007 works slightly different due to the new Features concept but is equally simple:
- First find the template/feature you want to modify in "web server extensions\12\TEMPLATE\FEATURES"
If you want to be able to show or hide the list through the Site Features option in a site, do the following:
- Make a backup copy of feature.xml
- Open the xml file in notepad and change Hidden="TRUE" into Hidden="FALSE" (case sensitive) and save the file
- Do an IISRESET
If you want to hide the list alltogether, do the following:
- Open the subfolder ListTemplates
- Make a backup copy of the .xml file
- Open the xml file in notepad and add this line somewhere around the Type or BaseType line: Hidden="TRUE" (case sensitive)
- Do an IISRESET
No comments:
Post a Comment