This decision is made inside the Dataface/templates/Dataface_View_Record.html template with the line:
- Code: Select all
{if $field.visibility.browse != 'hidden' and $record->htmlValue($field.name)}
Hence, you can fix this issue by either modifying the template (do this by copying it first into your application's templates directory and adding some other condition, or by making sure that htmlValue() always returns a non-empty value. (It can return "0", but not 0, or "").
There are a few ways to manipulate the output of htmlValue() to provide some output:
1. Implement the fieldname__htmlValue() method for each field that you want to modify.
2. Add a listener for the application's "Record::display" event which allows you to filter the output of the display() method for all records. (The display() method is used by htmlValue as a base value)..... However.. no docs on this yet and it is a 2.0 feature (not in 1.3.x).