Fixing Blank Fields

Fixing Blank Fields

Blank Fields

    The show-title-when-blank attribute can be used to display the field name before the inline editing control in the Page Editor if the field is empty, which can help content authors locate empty fields.
      Use an if statement to determine if the field is blank or the PageMode is the Page Editor Edit mode Replace fieldname with the name of the field that should be filled in by the content author
    The sc:fld()XSL extension returns the raw value of a field, or the value of an attribute within an XML field value

XSLT Rendering Code

<xsl:if test="(sc:fld('fieldname',.)!='') or (sc:pageMode()/pageEditor/edit)">


      <sc:text field=" fieldname " show-title-when-blank="true"/>