Question

I'm needing a hand deciding an approach to this. Here is the business requirement.

Create a Meeting Workspace which contains a Project Tasks List (OOTB) and fills it with "stub" tasks (such as "send invites") with deadlines relative to the date on which the Meeting takes place (such as "minus 2 weeks from Meeting").

These "Stub tasks" might be stored in a list somewhere in the parent Web, to allow customisation.

Site Templates can save list contents to the template, but you loose the relativity of the task dates.

I thought about creating a feature receiver to trigger when the site is provisioned, and programmatically enter the tasks, but in order to staple the feature to just a specific site template, I'd need to create a brand new Site Definition (derived from the MPS definition), which seems a fair bit of work for (what appears to be) such a simple requirement.

What other ways could I approach this without creating a new Site Definition?

Was it helpful?

Solution

This sounds like it could be solved with a custom provisioning provider. This would only require a new entry in a custom WEBTEMP.xml and some provisioning code that instantiates what you need.

See my links on the subject here

OTHER TIPS

If you automate the creation of the sub site via a web part or other mechanism then you can populate the list from this same code after the site has been created.

Not sure if this fits your workflow, but it is probably the simplest approach.

An alternative would be to bundle everything into a web part that can trigger the data population and custom setup actions.

With that said, I would do the custom Site Def and feature receiver.

You don't need to staple your feature with a receiver, just create a plain ol receiver that creates your setup actions and then activate it on demand.

You could also make a custom action for the Project Tasks list, which makes the population.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top