WSS – ONET
Whilst messing with a product some contractor of ours did for us (SURJIT I’m talking about you). I discovered a lovely piece of code.
The SiteDef had some SiteProvisioning code, it read an XML file to do additional processes as part of the site provisioning, rather handy in some cases.
But I did notice a few oddities.
In SiteProv he was creating lists. Also He was copying files from the file system into Lists. Some users just don’t have access to this part of the file system and this was exploding.
Two things about this technique,
- 1st. You can Provision Lists in the ONET.
- 2nd You can copy files into lists in the ONET.
The first item he should have known, so WHY do it as part of site provisioning event ? I don’t know. Perhaps something to do with sequence, perhaps stupidity
.
Second I can forgive, someone not trained in SharePoint might not know exactly what the <Module> Tag is really for.
Think of the <Module> tag in Features and SiteDefs as a kind of File copy as well as configuring what webparts go where on a page, it can copy files from the file system into a DocLibrary, but most importantly it has the correct rights to do it.
Some extra info on ONET’s and Modules.
From all the examples you have seen in existing SiteDefs the most likely arrangement would be something like this