Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am building a SharePoint solution that will allow for the dynamic provisioning of sub-sites off of a root site in a site collection. Each sub-site has a set of lists (built from discussion list template) for which I've written an event receiver that is currently "Web"-scoped and deployed in the sub-site I've been developing against.

I'm at the point where I need to make my event receiver work for x number of sub-sites. I am considering changing the event receiver's scope to "Site".

Currently, the target lists are the only "Discussion" lists in the entire site collection -- but I don't want to paint myself into a corner. I am considering creating a custom list template, basically a wrapper around the discussion list template so that I can specify the new template as the ListTemplateId for the event receiver.

Is this a good idea? If not what is a good alternative?

What is the ideal way to create the list template? (Designer, Visual Studio, etc.) What is the ideal way to deploy it?

share|improve this question
I think what your own suggestion of inheriting from "Discussion" is a good solution. You should use Visual Studio 2012 to create your List Definition, since the SharePoint Customization Wizard for this is improved. But it won't let you create a customized list extending "Dicussion Board". Perhaps you could just change the ID, but I'm not sure – eirikb Sep 17 '12 at 5:39

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.