I have been trying with custom site definitions for a week. They are
interesting. What are the best sites/blogs for folks who have plumbed the
depths of onet.xml and schema.xml etc.
Simple stuff is done pretty simply, but when you want to do a bunch of
stuff, the pile of hay eventually collapes with a resounding clunk as my
browser says "error" and "see troubleshooting for help" (lol @ as if) when I
access a site created from my more and more modified template.
Also, there are a few things I was simply not able to do:
1) Figure out all the things I have to do to all the files to add a document
library to my site definition.
2) Figure out how to 'uncheck' the 'overwrite existing files?" checkbox on
the upload.aspx(s). This one mystified me as I tryed a number of
alternatives.
3) Figure out what 'List' and 'Template' directories I can delete after I
use the 'Path="STS"' command on onet.xml for my lists that I want to keep
the same as STS. I really want to delete that which I do not need under my
template directory.
4) Figure out how to make a 'List Web Part' specific to my subsites to show
on the home default page. I can't seem to find the way to access the basic
underlying Web Part for lists and then insert into this the specific list
(i.e. the subsites) I am interested in. I figured I could avoid programming
(more importantly maintenance) by using the generic list web part and
specifying a view or service.
I am off to do the following: make a site similar to what I want then export
it as a template and the examine the manifest.xml file for clues. If anyone
has any other suggestions or solutions to my problems, I'd appreciate
hearing them.