Solved

Template for a List

Posted on 2011-02-14
8
285 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 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