Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I created a webpart which grabs content of two Lists in Sharepoint, is used as source. Its working very well and i like the way users can change content. Is there an way to export my list-schema+content and deploy it somewhere else? I already searched for that on google but it seems nobody used lists as webpart-source before... I know that i could handcode the two lists with c# but thats way to mutch work in this case...

Thank you

Sven

share|improve this question
    
Read twice. Haven't understood the question :( Probably you need to rephrase, or to illustrate your question with some screenshots/code... What schema do you mean? List schema, webpart schema, or what? If you need to export xml schema of webpart, you should switch to edit mode of the page, and select "Export webpart" from contextual menu of your webpart. –  Andrey Markeev Oct 24 '11 at 9:21
add comment

1 Answer

up vote 1 down vote accepted

Go to list configuration page, save list as a template, check include content and you will have a list template you can use everytime you want to create a new list.

If you want to create a new list in another site collection, go to list templates gallery, select the template you just created and save it to your computer. Then go to the other site collection and import it.

share|improve this answer
    
Thank you .. that worked... its not the nicest way.. I thought about doing this automatic, for more than 20 List's ... –  fr34kyn01535 Oct 28 '11 at 12:14
    
I don't know another way to do it with more than one list at a time. Sorry... –  Bargant Oct 28 '11 at 15:41
    
Well.. i think hardcoding is my only option.. –  fr34kyn01535 Dec 15 '11 at 8:52
    
Check this, it could help (not tested): technet.microsoft.com/en-us/library/ee428301.aspx –  Bargant Dec 19 '11 at 10:40
    
Well the thing is - we also need custom columns here... so its not that easy... I did that now with saving Site as Template, Importing Template in VS2010, cleaning it up (ALOT!) and deploying it to another server.. It's really hard to get the damn Lists workin (Forms...) but it atleast does.. –  fr34kyn01535 Dec 19 '11 at 10:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.