Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Template for a List

Posted on 2011-02-14
8
Medium Priority
?
298 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
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Screencast - Getting to Know the Pipeline
Suggested Courses

916 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