Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Using glz_custom_fields with MLP on TXP 4.4.1 creates a duplicate Body field #28

Open
johnstephens opened this issue Aug 5, 2011 · 1 comment
Milestone

Comments

@johnstephens
Copy link

This issue is very similar to issue 23, which was solved by the most recent upgrade.

Now, instead of seeing a duplicate Excerpt field, the Body field is duplicated. The duplicate field appears below all my glz Textarea custom fields and above the Excerpt field.

Here's how it looks in the source order:

p.body <!-- This field includes a hak_tinymce editor -->

<!-- Textarea-type custom fields -->

p.body[dir=ltr]  <!-- This duplicate Body field includes a dir attribute, but no tinymce editor -->

p.excerpt[dir=ltr]

I can't use the same CSS hack I used before because hiding the first Body field also hides the tinymce Editor that my clients use to markup the content. If I hide the second Body field instead, that field is submitted regardless of edits to the visible field. This is a big problem when updating an article.

@johnstephens
Copy link
Author

Workaround: Teemu posted this script which removes the duplicate Body field:

$("p.body:eq(1)").remove();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant