22. července 2009 22:05
My client wants their site owners to use a custom document library template instead of the default document library template when they create document libraries.
I added the custom template to the list template gallery, but users can still choose to use the out-of-the-box MOSS document library template. Is it possible to delete the default, out-of-the-box document library template so that only our custom one can be selected when users create a doc library?
23. července 2009 1:31
The OOB document template is part of Team Collaboration Lists in Site Settings > Site Features.
It could be removed from create page by deactivating the feature. However, other OOB list templates would also be removed from create page.
If other OOB Team Collaboration Lists are essential to your business, I do not suggest you to deactivate Team Collaboration Lists feature.
As a workaround, I suggest you to tell the users not to use OOB document library.
Thanks for your understanding.
-lambertSincerely,Lambert Qin | Microsoft TechNet Managed Forum SupportPosting is provided "AS IS" with no warranties, and confers no rights.
23. července 2009 2:25
I think you can do it with a Feature. I'll look into that... but the following also works and sometimes can work where a Feature will not.
The following “hack” is:
- requires access to the web servers
- not a form of security
- and is not best practice! (the next service pack could replace the create.aspx page)
Note: this example hides "Wiki", "Survey" and "Sites and Workspaces". Edit the line with "Wiki|Survey|Sites and Workspaces" to what you want to hide.
- Go to your web server and to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
- Open create.aspx in your favoriate text / page editor. (I used Notepad) BACKUP THIS FILE BEFORE EDITING!
If you like to limit this to just for MySites then wrap the above in:
if (document.location.href.match('/personal/')!=null) //do this just for the mysites
Mike Smith TechTrainingNotes.blogspot.com
- Označen jako odpověď SharePointDrivesMeCrazy 24. července 2009 14:02
24. července 2009 14:02Thanks Mike, that is exactly what I was looking for!
27. dubna 2012 7:06
I am also trying to customize the default document works pace.I have a requirement as follows
When we create a document workspace from document library (click on title-> send to-> create document workspace) i don't want all the default templates.I just want Document library on the document workspace and all the other default templates like announcement,calender and everything should be removed.
Please suggest me on the above
Thanks in advance