× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Hide empty fields

  • william.kcperformance
  • william.kcperformance's Avatar
  • Offline
More
11 years 3 months ago - 11 years 3 months ago #1492 by william.kcperformance
Hide empty fields was created by william.kcperformance
Is it possible to hide records/cells that are empty?
In my template the title of a field is h3 and the content p.
When I open a record all the h3 titles are there, also the "empty" ones.
I would like to see only the fields with content and with a h3 title.

Thanks for your support and this great component! :-)

[h3]Transmission[/h3]
manual

or hidden...
Last edit: 11 years 3 months ago by joest.

Please Log in to join the conversation.

More
11 years 3 months ago #1496 by Midge
Replied by Midge on topic Re: Hide empty fields
Hello william.kcperformance..

If I understand you correctly, the ifis function can help you.

{joodb ifis|FIELDNAME|[value]|[cond]}

JooDB Dokumentation wrote: Without any value or condition the content of FIELDNAME is tested for empty,false,zero or negative.

Please Log in to join the conversation.

  • william.kcperformance
  • william.kcperformance's Avatar
  • Offline
More
11 years 3 months ago #1498 by william.kcperformance
Replied by william.kcperformance on topic Re: Hide empty fields
That works! (of course) Everything seems under control.
Now moving on to the translation/Dutch part...

Please Log in to join the conversation.

Moderators: Dirkjoest