Viewing 3 reply threads
  • Author
    Posts
    • #7446
      pwolfert
      Participant

      Hi Everyone,

      This is more a problem with qTranslate-X assuming a certain structure for fields in meta-boxes, but I thought I’d see if anyone else has run into this problem before, and if not, the solution that I eventually find can stay here as a resource.

      What’s happening is that I have a group field for pairs of link text and a link url (both of which are text type fields), and they each have labels. The problem is that I have one of them that is translated, and qTranslate-X modifies the fields on the client side with some JavaScript, while Piklist also modifies the fields with JavaScript. I’ve created gists for what comes directly from the server and what results after the client-side scripts manipulate it:

      https://gist.github.com/pwolfert/f1b27dcd238d72865d76f28a1b42f32c
      https://gist.github.com/pwolfert/05c9f57342e93418d8b7a957f6223aa2

      See the first two field groups in the screenshot to see what’s happening. The third group is what I added after the page load by clicking the plus button. Note that for all of the ones created dynamically after the page load, the label is missing entirely.

      What I initially did to try to fix the problem was write a script that ran after the others, grabbed the rogue label, and shoved it back inside the group’s div. It was after that that I realized it didn’t work for new groups created on the fly because the label was missing altogether.

      Has anyone else come across anything like this or worked with both qTranslate-X and Piklist? I also want to note that there are only problems on the grouped fields. All my other Piklist-created meta-boxes have translated fields that work fine, and if I remove the translation functionality on the link text field, it works fine.

      Thanks,

      Patrick

      Attachments:
      You must be logged in to view attached files.
    • #7448
      pwolfert
      Participant

      I had a second issue with qTranslate-X and the group fields and went looking for a fix to that and found that when I applied it, it fixed this issue too. It’s not in any of their published releases yet, but it should hopefully be soon. https://github.com/qTranslate-Team/qtranslate-x/issues/392#event-692684446

    • #7476
      Steve
      Keymaster

      @pwolfert– Welcome to the Piklist community!

      Just to confirm, this issue is resolved in the next version of qTranslate?

    • #7478
      pwolfert
      Participant

      Aye, confirmed.

Viewing 3 reply threads
  • The topic ‘Conflict with qTranslate-X Plugin and Group Fields’ is closed to new replies.