How to deploy a custom list with custom Schema and have it synchronize across variations?
-
10-12-2019 - |
Question
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":
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.
Solution
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.