Solved

Template for a List

Posted on 2011-02-14
8
229 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
 

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SharePoint 2016 2 46
onenote 2016 sync 40 161
Sharepoint 2013 error 4 35
SharePoint 2013 Document Library Newsletter View Count 3 23
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now