Search:
tqExpert Help
print
|
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Help > tqExpert Help > tqOption General Procedures > Dynamic Tables Using head and tail

Dynamic Tables Using head and tail

A list of products is a dynamic list, with the number of content rows dependent on the number of products that meet the search criteria. In this code sample for a product table, the head and tail tqOptions enable code that meets W3C criteria even when the search is empty. (If not for these tqOptions, you could end up with a table without any <tr> and <td> tags.)

Code Sample - head, tail

<tqtag type="content" name="products">
   <tqoption type="head" alternative0="">{!
      <table align="center">
   !}0</tqoption>
   <tr><td>@id@</td><td>@title@</td></tr>
   <tqoption type="tail" alternative0="">{!
      </table>
   !}0</tqoption>
</tqtag>

User Notes

  Add Note

Topic: Dynamic Tables Using head and tail