By: joshmac
Date: 2008-07-09
Time: 03:14
|
Display if
Hello again. i am trying to set up a way that a "tr" appears on the page only if a value is set in the database. Below is what I have so far. Please let me know what I am doing wrong. Thank you.
<tr><td>Company Name:</td> <td>[blk2.co_name;block=tr;when [blk2.co_name]!='']</td></tr>
<tr><td>Status: </td> <td>[blk2.status;block=tr;when [blk2.status]!='']</td></tr>
<tr><td>Education Level: </td> <td>[blk2.education_level;block=tr;when [blk2.education_level]!='']</td></tr>
<tr><td>Career Level: </td> <td>[blk2.career_level;block=tr;when [blk2.career_level]!='']</td></tr>
<tr><td>Experience: </td> <td>[blk2.experience;block=tr;when [blk2.experience]!='']</td></tr>
<tr><td>Position Title: </td> <td>[blk2.title;block=tr;when [blk2.title]!='']</td></tr>
<tr><td>Date Posted: </td> <td>[blk2.date;block=tr;when [blk2.date]!='']</td></tr>
|
|
By: joshmac
Date: 2008-07-09
Time: 04:38
|
Re: Display if
Disregard, this works for me.
<tr><td>Company Name:</td> <td>[onshow;block=tr;when [blk2.co_name]!=''] [blk2.co_name]</td></tr>
<tr><td>Status: </td> <td>[onshow;block=tr;when [blk2.status]!=''] [blk2.status]</td></tr>
<tr><td>Career Level: </td> <td>[onshow;block=tr;when [blk2.career_level]!=''] [blk2.career_level]</td></tr>
<tr><td>Experience: </td> <td>[onshow;block=tr;when [blk2.experience]!=''] [blk2.experience]</td></tr>
<tr><td>Position Title: </td> <td>[onshow;block=tr;when [blk2.title]!=''] [blk2.title]</td></tr>
<tr><td>Date Posted: </td> <td>[onshow;block=tr;when [blk2.date]!=''] [blk2.date]</td></tr>
|
|
|
Posting in progress.
Please wait...
|