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'm accessing list content via its corresponding webservice. I'm re-creating new lists for new sites but often the list content type is the same - image, link etc.... Is it possible to create a list type which can be re-used and added to multiple sites to access the content using the same service. To access the content from different sites I could use a parameter as part of the REST endpoint which determines which site I'm referring to ?

So for example :

I have a predefined list called 'imageListField' which just stores an image. When I create a site : 'site1' I add the field 'imageListField' to this site (site1). I then create a new site 'site2' and add the same field 'imageListField' to this site (site2). Is it possible for 'imageListField' to contain different images for the two different sites (site1 & site2) Can I access the contents of imageListField for 'site1' & 'site2' via its web service ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Not sure I understand what you want to do but each list will have its own unique endpoint e.g: http: // contoso/sites/_vti_bin/listdata.svc/ListName()

That is how you determine which site you refer to.

You can have a reusable list definition and content type if you deploy them as a feature, then you can activate them in any web.

share|improve this answer
    
thanks, I've updated my question, hope this better explains what I'm trying to do. –  blue-sky May 14 '13 at 8:19

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.