I was working on a project to customize a Meeting Workspace, here are some details.
· Feature stapler to activate a feature receiver when a Meeting site is created
· Feature receiver to do a bunch of things to customize a newly created site
· Create some lists
· Modify lists to be Series
· Add custom content types
· Associate these content types with the list
The main point I am trying to make here, is the series list
You want to achieve this in code: Share List Items Across All Meetings (Series Items) Now let’s go look at some code. First we are going to create a list, in case it exists, we will have the SPList object either way, I do not like exceptions, but in this case I didn’t feel like looping through the site’s list collection and matching a name…
SPList MinutesList;
try
{
MinutesList = m_CurrentWeb.Lists["TaskList"];
}
catch (ArgumentException ArgEx)
{
Guid ListId = m_CurrentWeb.Lists.Add("TaskList", "Used to store tasks for a meeting.", SPListTemplateType.Tasks);
MinutesList = m_CurrentWeb.Lists[ListId];
}
Now that we have our SPList, make some changes to it:
//Turn on email on assigned
MinutesList.EnableAssignToEmail = true;
//Turn off folder creation
MinutesList.EnableFolderCreation = false;
//Turn on Content Types
MinutesList.ContentTypesEnabled = true;
//Make the list a series list MinutesList.MultipleDataList = false; MinutesList.Update();
The important part of this post is in bold, MultipleDataList set to false gives you a series list. (Data that is shared throughout a meeting series)
You can see the MS documentation here. But this is like a lot of MS documentation these days, not very good.
Cheers.