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

Remove TR if filed is empty or null

More
9 years 7 months ago #4158 by Stefanato
Remove TR if filed is empty or null was created by Stefanato
Hi,
It's possible to remove the TR roe if tield is null or empty ?
In example if field buildingconstructiontype_description is empty I need to hide the full Table row....
Code:
<tr> <td>Building Type:</td> <td>{joodb field|buildingconstructiontype_description}</td> </tr> <tr> <td>Expenses:</td> <td>{joodb field|buildingexpenses}</td> </tr>

Thanks in advance.

Please Log in to join the conversation.

More
9 years 7 months ago #4159 by d.hoeschen
Replied by d.hoeschen on topic Remove TR if filed is empty or null
{joodb ifnot|XXX}

Code:
{joodb ifnot|buildingconstructiontype_description} <tr> <td>Building Type:</td> <td>{joodb field|buildingconstructiontype_description}</td> </tr> {joodb endif} <tr> <td>Expenses:</td> <td>{joodb field|buildingexpenses}</td> </tr>

Please Log in to join the conversation.

More
9 years 7 months ago #4161 by Stefanato
Replied by Stefanato on topic Remove TR if filed is empty or null
Thanks for your reply.
But I need to hide the TR also if the field value is text "not value" and/or the value is set to "0" (zero). How ?
Thanks in advance.

Please Log in to join the conversation.

Moderators: d.hoeschenjoest
Powered by Kunena Forum