• Resolved Perie

    (@3wkom)


    I will just speak to you for the English and French of my site.

    the basic site is in French, the homepage has its mobile version . Here no problem

    For the English version, there are two possibilities:
    1) I use wpml to make a duplicate of the mobile page in French to English, the page is created and has the flags to change language. It is well detected as a mobile version but not of the English homepage office.

    2) I go in my list of English pages I take the office homepage and I create this mobile version, page created OK, the redirection works.

    But as we did not go through wpml . The mobile page is displayed without the flags since wpml does not know that this mobile page has its French translation.

    I hope to have been clear

    the only possibility would be to have an editable field in order to determine which page id corresponds to the mobile version of another one

    • This topic was modified 3 years, 10 months ago by Perie.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jose

    (@giuse)

    Hi @3wkom

    thank you for opening this thread. I think I understand what you mean.

    On the single pages, you have a section where it’s written “You are editing the mobile version of Sample Page”. What do you think if instead of “Sample Page” you have a dropdown list of the pages where the related desktop version is selected (in this example Sample Page)?
    Then if you select another page and save it, you would assign that. mobile version to another desktop page.
    In the same dropdown list, you would have also the option “Unlink desktop version”. If you save after selecting “Unlink desktop page” you would convert the mobile version to a normal private page

    I would do something similar for the single desktop pages. You would have a dropdown list where you can unlink the related mobile page, or assign a different mobile page.

    This should give you the possibility to assign the right mobile page in the case of translated pages and would also be useful for users who don’t have translated pages because they could decide to assign other mobile versions.

    I don’t know if it’s clear what I mean, and most of all if you think that it could be helpful for you. Please let me know your thoughts.

    If you also think this could be a good solution, I will implement it in the next version.

    Thread Starter Perie

    (@3wkom)

    hi @giuse
    It’s great that you answer so quickly and that you understand the problem very well.

    your idea is very interesting, some important points:
    – drop-down list, yes ok. it must display pages in the same language, or else have a page search module on certain site or sometimes more than 500 pages (multiplied by the number of languages).

    – I’m currently working on a client site, I don’t think I’ll have time to wait for your update but of course it will be very useful for future sites. So I’m going to modify the desktop page ==> mobile page correspondences directly in the database…. if you can give me the name of the table that manages this ?

    in any case your plugin is super interesting and effective, I validate your idea for the next version

    best regards

    • This reply was modified 3 years, 10 months ago by Perie.
    Plugin Author Jose

    (@giuse)

    Thank you very much for your suggestions, Perie.

    The relation between desktop and mobile version is saved as post meta. So in the database, you will find it in the table wp_postmeta.

    The meta keys are eos_scfm_desktop_post_id and eos_scfm_mobile_post_id

    Let’s say for example you have a desktop page having ID 350 and the related mobile page has the ID 420.
    In this example get_post_meta( 350,’eos_scfm_mobile_post_id’,true ) will return 420.
    And get_post_meta( 420,’eos_scfm_desktop_post_id’,true ) will return 350.

    In any case, you will find the same post meta in the custom fields. So you should be able to assign another mobile version changing the custom field value of eos_scfm_mobile_post_id directly in the backend on the single page.

    Just be sure you show the custom fields. Screen Options => check Custom fields.

    Thread Starter Perie

    (@3wkom)

    thank you very much for the information on the keys to modify in the wp_postmeta table.

    It works perfectly!

    Thanks to you

    Plugin Author Jose

    (@giuse)

    You are welcome Perie. I’m very happy to know that it works.

    @3wkom

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPML not compatible 100%’ is closed to new replies.