The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
65 views

Any way to figure out whether a site was created via Self-Service Site Creation or “regularly”?

Is there any way to figure out whether a site was created by a user, using self-service site creation or by an admin by Central Administration or PowerShell? I tried looking through the ...
1
vote
0answers
29 views

Can I use a provisioningProvider to a custom web template?

I have problems with the sequence of my logic. I have featere1 where I have my custom webtemplate. Then I have feature2 where I have implemented my default.aspx page. Feature1 is activating feature2. ...
0
votes
1answer
314 views

Overflowing SPWebProvisioningProvider.Provisioning call

I have implemented a SPWebProvisioningProvider class which overrides the Provision method for a custom site definition. If I don't run any code, I get the 'select a template' page when I open up my ...
1
vote
1answer
177 views

In what order does a Site Definition provision a site?

I have created a site definition in which I have a series of web scoped features getting activated. Some of the features are meant to set targetting audiences on webparts, some of them are creating ...
2
votes
1answer
2k views

“Invalid Field Name” Exception when using Provisioning

I wanted to create a site template package. Instead of going with a custom site definition, I planned to go with the recommended "Provisioning Provider" technique. The solution was going just fine. ...
3
votes
3answers
1k views

How can I run custom code when a new site is created for a specific template?

I have created a webtemplate feature based on TeamSite project, but I want to add code to run when I create a site based on this template. Any idea how to do this? Thanks in advance for your help.
0
votes
1answer
164 views

Can WebProvisioningProvider assembly version be automated in webtemp xml file?

I have a basic site site definition I am attempting to provision with a custom SPWebProvisioningProvider. I have the following attributes set in the webtemp xml file ProvisionAssembly="{assembly ...
2
votes
2answers
1k views

Changing site/list definitions post-production

There have been several questions asked on this site regarding the best way to provision sites and lists (definition schemas vs. templates vs. the object model vs. the web interface vs. provisioning ...
1
vote
3answers
1k views

Problem making fields 'required' when provisioning using XML

I am provisioning a SharePoint site column using the object model and an xml string as follows: using (SPSite site = new SPSite("http://myserver")) { using (SPWeb web = ...
1
vote
1answer
543 views

Invalid field name error when calling GetAvailablePageLayouts()

UPDATE Worth noting that this is only happening when the site definition is called from SPWebApplication.Sites.Add, if I use the UI then this works fine. My code is impersonating the system account ...
7
votes
10answers
4k views

When to use Custom Site Definitions… and not

Its an old battle between ITpro and developer. ITpros hate them due to upgrade issues, devs like the freedom it gives them without having to do house cleaning with feature stapling. What is your ...