 |

Cross01
User
Feb 2, 2007, 7:26 PM
Post #1 of 3
(279 views)
Shortcut
|
|
Trying to hide a blank row
|
Can't Post
|
|
Please forgive me if this is posted somewhere else in the forum, as I could not find anything in a search (could be I was searching for the wrong terms)... What I'm trying to do is make an "templateif" that makes an entire row hidden if the placeholder is "", or blank. Below is the code for the row that needs to be hidden if article.agencycode is left blank. Please sho me the way. <tr> <td align="left" valign="top" bgcolor="#FFFFFF" class="bold">Code:</td> <td align="left" bgcolor="#FFFFFF" class="bold">$article.agencycode$</td> </tr> Thanks in advance for any assistance!
|
|
|  |
 |

Divya
User
Feb 2, 2007, 10:07 PM
Post #2 of 3
(277 views)
Shortcut
|
|
Re: [Cross01] Trying to hide a blank row
[In reply to]
|
Can't Post
|
|
Hi there Thanks for the post , You are absolutely right that you can be able to hide the display of the table row by applying some templateif. Try using the below code
<!-- templateIf : $article.agencycode$ ne "" --> <tr> <td align="left" valign="top" bgcolor="#FFFFFF" class="bold">Code:</td> <td align="left" bgcolor="#FFFFFF" class="bold">$article.agencycode$</td> </tr> <!-- /templateIf --> Here this particular row won't be shown up if the place holder value $article.agencycode$ is left null or blank Give this a try and let me know whether it helped Cheers Divya
|
|
|  |
 |

Cross01
User
Feb 5, 2007, 7:15 AM
Post #3 of 3
(262 views)
Shortcut
|
|
Re: [Divya] Trying to hide a blank row
[In reply to]
|
Can't Post
|
|
Ugh, of course it's that simple. Thank you for your help! It works perfectly.
|
|
|  |
|