Distributor: Translated Polylang pages don't get distributed correctly

Created on 19 Feb 2019  ·  5Comments  ·  Source: 10up/distributor

First thanks for this awesome plugin, I have been playing with it the last few hours in a multisite setup as follows: WP 5.0.3, using Beaver Builder Theme (Page Builder) and Polylang plugin and trying to achieve this:

General Idea:
Root-Multisite has all the pages in all available languages translated (set up via Polylang Plugin, lets say de|en|ru), so when I have Subsite 1 i distribute all pages of the Root-Multisite in all the languages that I want on this specific subsite (lets assume de|en) and don't have to duplicate any pages, since they are still linked to their original counterpart on the root-multisite but can just establish the connection with the fields in the document settings for languages of the sidebar of the page, as I would do on the Root-Multisite.

What does work:
Root-Multisite has Page A published, distribute Page A to internal subsite, see all Contents in Editor "classic mode" like it was in Root-Multisite, all Texts, images etc.

What does not work:
Root-Multisite has Page A published, AND translated with polylang in another language, distribute Page A in Language 1 to internal subsite: Page itself with title is visible, but I cannot edit it at all or see the contents.
The same happens, when Page A Language 2 is distributed to an internal subsite, therefore

Background:
Polylang is installed and the languages are set up the exact same way in the multisite root as well as in the subsite. I know this is not a polylang support project, I was just thinking maybe some page-(meta)settings were not correctly distributed?

Am I heading into the right direction with this approach? Or is this something that was never intended to be supported by Distributor? If there are some hooks available where I could start looking I'd be also thankful, or any hints - thanks!

enhancement help wanted plugins

Most helpful comment

@hreimer thanks for the feedback and welcome to Distributor, your input is greatly appreciated! I don't believe your specific WP/plugin/theme configuration has been tested, but your use case certainly makes sense. I'll review this with the engineering team to see who can best work on triaging your issue and determining if there's a Distributor enhancement/fix that could resolve what's not working for you.

All 5 comments

@hreimer thanks for the feedback and welcome to Distributor, your input is greatly appreciated! I don't believe your specific WP/plugin/theme configuration has been tested, but your use case certainly makes sense. I'll review this with the engineering team to see who can best work on triaging your issue and determining if there's a Distributor enhancement/fix that could resolve what's not working for you.

Related to #382.

We are facing a similar problem with Polylang. We have been able to pull both German and French pages but we would like to connect the both pages so that the language switcher works on the frontend.

It is not possible to connect the pages as the settings are disabled by distributor.
image

I am not fully sure how the settings have been disabled. Is there a way to allow changes to only one setting? That would be the simplest solution I think.

I have come across another problem that even after disconnecting the post the field to search for the translation is still disabled.

image

There is another problem that no posts are shown when only posts from a single language should be shown.
image

Thanks for the additional feedback @grappler, sounds like @dinhtungdu got some in-person details from you in the past week as well. I'll let @dinhtungdu add any additional information here, but we'll otherwise look to tackle this in a couple releases as we're already pretty set with fixes+features milestoned for our v2 and v2.1 releases. However, if someone is able to work on a PR to help on this topic, I'd be happy to pull that forward into a more current milestone.

Was this page helpful?
0 / 5 - 0 ratings