Thursday, March 12, 2009

How to increase Site or List Template Size

This blog solves the follwoing errors
1. "The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes"
2. "Failure decompressing data from a cabinet file"

For the first error,
To increase the Site or List template size, use the following STSADM command
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 83886080
80MB = 80*1024*1024 bytes = 83886080
The maximum size that can be set is 500MB

For the second error,
use the -nofilecompression attribute of export and import of STSADM.

Export Using
stsadm.exe -o export -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup

Import Using
stsadm.exe -o import -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup

Monday, March 9, 2009

Hiding search on all application screens

Application(_layout) screens usually don't display the search in the header.
There does appear to be a few screens out there that do, and depending on your design for application screens, this may throw a wrench in how your page looks.

To stop the search from showing in any application screen, add the following CSS style to your theme or alternate CSS file:

.ms-searchform {
display: none
}