- This topic has 3 replies, 2 voices, and was last updated 5 years, 3 months ago by
pwolfert.
-
AuthorPosts
-
-
October 19, 2016 at 12:59 pm #7446
pwolfertParticipantHi 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
texttype 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/05c9f57342e93418d8b7a957f6223aa2See 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. -
October 19, 2016 at 4:14 pm #7448
pwolfertParticipantI 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
-
October 30, 2016 at 10:22 pm #7476
-
October 30, 2016 at 11:19 pm #7478
pwolfertParticipantAye, confirmed.
-
-
AuthorPosts
- The topic ‘Conflict with qTranslate-X Plugin and Group Fields’ is closed to new replies.