Tagged: page content, reusable, translation, wpml
-
AuthorPosts
-
January 15, 2020 at 10:33 pm #1174697
Hi,
I am using Enfold’s “Page Content” component to repeat shared content across pages (by using a “Shared Content” Custom Post Type)
I am also using WPML to translate content.
When I go to the other version of the page (say French), the dropdown selector for the “Page Content” item on my page correctly *only* shows the French versions of the “Shared Content” available to select on the French page.
However if I change the selection for the “Page Content” blocks on the original English page and update the page, the French “Page Content” blocks selection on the French page don’t match (this is probably expected), as I need to tell it I want to redo a translation.
So, if I then go through the English->French translation process again, all of the “Page Content” blocks on the French page get overwritten with the English versions again and I have to manually reselect them all on the French page to point to correct French “Page Content” items again.
There just doesn’t seem to be a direct connection on the Translation page between the 2 versions of the “Page Content” so the French always gets overwritten by the English until I go into the “Page Content” blocks on the French page and pick from the French page content in the selectors again
Is there anyway to solve this? I tried editing the settings and couldn’t find a way.
thanks
JJanuary 17, 2020 at 9:32 pm #1175669Hey codemonkeynorth,
Have you tried to contact the WPML support team? They would be a better assistance.
Best regards,
BasilisJanuary 18, 2020 at 6:59 pm #1175891January 23, 2020 at 10:43 am #1177516Hi,
The shortcode would be something like:
[av_postcontent link='page,3848']
As much as I’m concerned WPML manages the translation on their own server in a config file.
Best regards,
GünterJanuary 23, 2020 at 12:45 pm #1177586thanks, I did find that
av_postcontent
shortcode actually in the code base then try get it into our ownwpml_config.xml
but I don’t believe WPML supports relationship fields (I wanted to have a dropdown with the list of translated posts in it)I’ll see if I can get it to bring up the shortcode value like this
https://wpml.org/forums/topic/i-need-to-translate-specific-shortcode-attributesif i can put the relevant “Post Content”
page,id
in the link value on the translation it might stop it being overwritten when going through the translation process. (theoretical so far!)thanks
JJanuary 23, 2020 at 2:32 pm #1177618also, how can I make the “Page Content” component pick up other custom post types please? (other than Page and Portfolio)
thanks
JJanuary 23, 2020 at 2:43 pm #1177627Hi,
The local wpml_config.xml is no longer used by WPML. It is only left because some other translation plugins might use it.
Translation of page id in links should normaly happen by WPML.
So if you are in e.g. german and add in shortcode av_postcontent a link to a german page and translate the page to e.g. french WPML should translate the link in av_postcontent to the french translation of that page in the link – if it exists.
If this does not work – this is a bug in WPML in my opinion – and should be fixed by WPML compatibility team.
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.