9

I have a multi-value embedded schema field with 4 subfields: subheading, text, image and caption, all of which are optional. Even if there is no field value, my template writes out the XPM markup to ensure that I get the <add text> placeholder, which can be clicked to add a value.

The placeholders do not appear until I click on a field which does have a value, which is fine, but as soon as I take an action which updates the preview (for example adding/changing an image, or clicking Update Preview) the placeholders disappear and do not come back even if I click on a field value.

The only way I have found to get them back is to click on the page in the breadcrumb and then back into an existing field value. Has anyone else seen this behaviour (for normal or embedded fields) and/or knows of a way to get the placeholders appearing consistently?

1
  • I have logged this with Customer Support and will update as and when I hear more
    – Will Price
    Commented Feb 10, 2014 at 13:11

1 Answer 1

6

What we do in our projects is using a text label ("empty" or something similar) between the span tags; that way, you always have a placeholder to click on.

1
  • Interesting and useful tip--that could be done by template's looking for empty values, defaults in schemas, or defaults in prototypes (default or custom Content types). Commented May 14, 2014 at 22:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.