?
Solved

Template for a List

Posted on 2011-02-14
8
Medium Priority
?
292 Views
Last Modified: 2012-05-11
Hello,

I would suppose I need to code this, but I am looking at creating a generic template for a list. What I want to do is when I create an object in this list, it automatically creates a Discussion Board and a Document Folder for this list.

Basically:
Project 1 - Location Philly - Attachments - Discussion
Project 2 - Location NY - Attachments - Discussion

Discussion Board for Project 1:
Random Text

Attachments for Project 1:
Word.doc

Discussion Board for Project 2:
Random Text

Attachments for Project 2:
Word.doc

Is this at all possible?

Thanks for all your help.
0
Comment
Question by:ITimaging
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34892284
Honestly, I would create a site template with a discussion board in it and a Document Library in it. That way you have a site per project.

Advantages :
you can easily create this.
you can put security settings on the site and they will apply to the project instead of having to put the security on the document library and the discussion board
Disadvantages:
you might get a lot of subsites, but then again with your approach you propose initially you would get a lot of discussion boards and document libraries

If you want to code this (as I can understand that you don't want people to have the rights to create whatever subsite they want) you can always create the sites by making use of impersonation so that the users will not get rights to create the site. You could then use an event handler to automatically create the site whenever an item is added to the list (you could even add a url field so that the url of the item gets filled in as well):

http://www.koenvosters.be/post/2010/05/05/howto-create-an-event-handler-for-sharepointmoss-2007.aspx

0
 

Author Comment

by:ITimaging
ID: 34896487
Hmmm. Unfortunately I don't think I have much right to add multiple subsites per project, or even just one per project, since there are going to be hundreds of projects in this list. I saw someone suggest creating a metadata workflow in-which to create a lookup field in the document library to the project list and things of this sort, but I really have no clue how to do that.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34896502
Just a calculation:

100 projects results in your solution in

100 items in a list
100 document libraries
100 discussion boards

Each item, and it's security should be projectrelated. How are you going to manage that? Keep it in sync? Technically all of it is possible, but from a maintenance point of view it is going to be a nightmare.

Creating a site in SharePoint doesn't take a lot of resources. I would really go for the site approach
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:ITimaging
ID: 34897004
Yes, I see what you're talking about. I'm going to have to think of how to get this working, because I definitely do see.
0
 

Author Comment

by:ITimaging
ID: 34897844
Man, these programs must hate me or something.

Okay, so I was going to go through your method and do the site thing with Visual Studio 2008, went through the installation of the WSP Builder, and so far nothing. I can't get into the WSP worksheet in Visual Studio to actually start creating this guy.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34900315
I would not go that far as to create a complete site definition :)
You can just create one project site based on the blank site template.
In there I would put two document libraries:
 - Project Documents
 - Project Discussion

Save the site as a template (call it mycompany Project Site or something)

Then, when people create a site for a project, instruct them to use that template. That's all you need, no coding required :)
0
 

Accepted Solution

by:
ITimaging earned 0 total points
ID: 34915860
Figured out a way of getting this done.
0
 

Author Closing Comment

by:ITimaging
ID: 34949663
I don't see why I graded my own post. But I did get it working a bit.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question