3

I'm digging through SharePoint.Server.Publishing.Variations, but can't find anything useful.

When I create a custom list (BaseTemplate=100) in a variation site. I get the new ribbon tab "Variations":

enter image description here

However when I deploy a custom list (e.g. ID 10000) the variations tab is not existing. I also cannot add the list to the variation hierarchy so it is automatically synched across variations.

How do I synch a custom list across variations? Can I work with content types (site collection based)?

My goal is to create a news display webpart with a news list backend. The list shall be automatically synched across variations and each variation hence has the news in their own language. I fail at creating the synched list, the webpart with different settings per language is no problem.


EDIT: It seems that synchronization is only possible with custom lists as described here: Variations Tab missing from List. What is the best practice then? Add everything else via feature receiver to that list (e.g. attach content type, different views)? I guess I can't use a custom schema then.

1 Answer 1

2

When you create a custom list definition with a new id you loose some out of the box functionality that are coupled to a base template.

Best to create a list instance with a custom schema. This way you can deploy youre customized list and keep all the functionality.

Second way is to create youre definition with the same type. But thats not recommanded.

7
  • Woah! You can add a list instance with a custom schema? How cool is that?! As my lists don't need to be recreatable (i.e. a user can create a new list of type "My special list") - this could really work. Same type I would never do, basically breaking the default type.
    – Dennis G
    Nov 17, 2013 at 18:02
  • Is it possible to upgrade list instances with custom schemas? I first create the list with CustomSchema set to something useful. How would I upgrade said schema? Just replacing the schema.xml?
    – Dennis G
    Nov 17, 2013 at 18:18
  • Oh.. and it seems like CustomSchema breaks multilanguage: answers.flyppdevportal.com/categories/sharepoint2010/…
    – Dennis G
    Nov 17, 2013 at 18:20
  • When you create a site in a english the list is in english. When you create youre site in dutch it is dutch however if you change your browser language it does not change
    – Remko
    Nov 17, 2013 at 18:30
  • Sure the URL stays the same, but you can use resource files to localize pretty much everything: msdn.microsoft.com/en-us/library/ff955226%28v=office.14%29.aspx and that function seems to be affected.
    – Dennis G
    Nov 17, 2013 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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