Answer the question
In order to leave comments, you need to log in
How to remove view fields from Drupal 7 output?
I suddenly ran into a problem. It was necessary to hide fields without data from the output and nothing takes them. Tried all the hooks, tried the views-field template to edit - zero emotion. Hence the question: how to remove empty lines from the output along with the label? Tips to insert hide($content[$field]) already tried everything. Something more robust is needed.
Answer the question
In order to leave comments, you need to log in
The problem was that I used a tabular view view, and the fields are not hidden in it. I had to switch to an unformatted list and theme the template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question