Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    J

    #1175669

    Hey codemonkeynorth,

    Have you tried to contact the WPML support team? They would be a better assistance.

    Best regards,
    Basilis

    #1175891

    is there some kind of shortcode for the Enfold/Avia “Page Content” component?

    I assume it could potentially be added to the wpml config to expose the field to the translation editor?

    If i know what that is, it may help with getting support from WPML

    Maintaining the Avia Layout Builder (Enfold) Compatibility with WPML

    thanks
    J

    #1177516

    Hi,

    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ünter

    #1177586

    thanks, I did find that av_postcontent shortcode actually in the code base then try get it into our own wpml_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)

    Maintaining the Avia Layout Builder (Enfold) Compatibility with WPML

    Language Configuration Files

    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-attributes

    if 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
    J

    #1177618

    also, how can I make the “Page Content” component pick up other custom post types please? (other than Page and Portfolio)

    thanks
    J

    #1177627

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.