Solved

Template for a List

Posted on 2011-02-14
8
253 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint Designer 2013 4 61
SharePoint 2013 Document Library Newsletter View Count 3 53
File size limit in SharePoint 2010 5 46
SP2010 Parent Child Relationship 3 31
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

13 Experts available now in Live!

Get 1:1 Help Now