Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My best guess at this issue is that the number of rows isn't being calculated or set correctly. When the display template is processed, if ($rows)
is always treated as TRUE ... so the empty text never gets chosen.
In my instance, I have 3 fields (displayed as two) which have a relationship to a node. Normally, an unordered HTML list is displayed which links to the users related to the node (argument). When no users are related (yet), it should display empty text. When semantic views is used, the empty text is not selected ... as I would expect.
Comments
Comment #1
hixster CreditAttribution: hixster commentedBump - I ran in to this issue today. I use a PHP custom field to determine the output of some rows.
Some times there are no rows and I would like an empty message to be displayed, any thoughts? I not really sure this is related to semantic views as I've tried unformatted row style and that seems to behave the same
Comment #2
Scyther CreditAttribution: Scyther commented