9

I have defined variations with two Labels (source and target)

I have selected "Publishing Sites and List with variations and all pages" in one of the settings. The pages are created in the target site but the Lists doesn't seem to propagate. Until and unless I go to List and define it under variations from UI.

Found the option to make it under Variations (screenshot below)

SharePoint 2013: Variation List Propagation

How can I do this programmatically when a new List is created, it should by default be under Variations..?

Is there a configuration way?

  • any solutions found? – Nk SP May 21 '14 at 15:41
  • 1
    Nop, I ended up creating lists in Target site programmatically on ListAdded event receiver – Arsalan Adam Khatri May 21 '14 at 19:42
  • In that way, will you still have the synch of list items between source and target? – Nk SP May 22 '14 at 7:02
  • Nop, in our case we didn't want Items to be propagated.. since data in them will eventually be changed completely for the target sites.. But to sync list items, you will need ItemAdded event receiver, it won't be automatic.. – Arsalan Adam Khatri May 22 '14 at 8:44
  • Do u know why in some lists there is no the Variations ribbon? – Nk SP May 23 '14 at 7:30
5
+25

Take a look to this link that explain How propagation works: http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/12/sharepoint-2013-variations-content-synchronization-between-source-and-target-variations.aspx

Also check the timer jobs that are responsible of the propagations and the Variations log.

From the link:

Custom lists and Libraries are by default not propagated to target labels. To propagate custom list/libraries, go to List and Variations tab, click settings and select labels where custom list needs to be created and synced. Once labels are selected, next Variations Propagate Sites and Lists Job Definition will create list in target labels.

Once list/library becomes part of variation system, SharePoint adds a new Approval Status column to control publishing and propagation on List items.

  • 2
    I already know how to do it from UI.. I want to do it programmatically from SharePoint Object Model.. – Arsalan Adam Khatri Jan 17 '14 at 10:23
1

Take a look to this method: SyncList(). We implemented this behavior using reflection (SPWebs follow the same pattern with SyncWeb() method)

0

Alternatively we ended up creating lists in Target site programmatically on ListAdded event receiver

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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