Need help with patTemplate.

A general technical discussion area for patTemplate.
User avatar
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

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

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

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 :



Return to “patTemplate”