0

I can't seem to force an empty field to display so that it can be edited with editable fields. I installed the Empty fields module which adds an option in the pane settings but still no luck.

Has anyone had success with this?

Edit: Form content with added submit buttons work, but Page Content is far more user friendly.

2
  • In empty display options, did you type something for the custom value?
    – No Sssweat
    Commented Mar 13, 2016 at 7:49
  • Yep.. If I set a value and then delete it, that custom value displays until a page refresh. Commented Mar 13, 2016 at 7:50

1 Answer 1

1

In your /sites/all/theme/YourTheme/template.php file, you could try using

function YourThemeName_preprocess_content_field(&$variables) {

    if (!isset($variables['field_name']) {
    $variables['field_name'] = ' ';
  }
}

but I don't know if the empty ' ' will show.

1
  • I went for an editable view pane which let me put a few fields in one pane.. Works fine. Good advice though. Commented Mar 13, 2016 at 15:49

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.