Need help with patTemplate.

A general technical discussion area for patTemplate.
Locked
User avatar
Sergey
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Nov 20, 2005 12:48 pm
Location: Moscow, Russia

Need help with patTemplate.

Post by Sergey » Fri Jan 13, 2006 7:55 am

I need to display a simple array like ('value1', 'value2',.... 'valueX') as a two-column table like

Code: Select all

<table>
<tr><td>value1</td><td>value2</td></tr>
.....
<tr><td>valueX</td><td> </td></tr>
</table>
How? I think I need to use a 'modulo' type, but how to fill empty cells?

wene
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 203
Joined: Sat Aug 20, 2005 1:40 am
Location: south of France

Re: Need help with patTemplate.

Post by wene » Mon Jan 16, 2006 4:33 pm

hello
to display an array content in a template, use the addRows or addVars functions.
to replace empty cells with  , have you tried to use the default value of a variable ? like :




   
        {ROW_A}
   



Locked

Return to “patTemplate”