Hello,
After hours and hours of debugging i discovered that the array containing the values of your variables requires the first element to be the first element in your table!
E.g. if your template table is like this:
Name | Adres
------------------------
$NAME$ | $ADDRESS$
Your array should look like this:
[0]=>array(
[NAME]=>my name
[ADDRESS]=>an address)
[1]=>array(
[NAME]=>other name
[ADDRESS]=>other address)
My array is filled by a query that is executed against a database and contained more fields than defined in the template table. This resulted in only one row getting filled.
E.g. this did not work:
[0]=>array(
[COUNTRY]=>NL
[NAME]=>my name
[ADDRESS]=>an address)
[1]=>array(
[COUNTRY]=>NL
[NAME]=>other name
[ADDRESS]=>other address)
And this did work:
[0]=>array(
[NAME]=>my name
[ADDRESS]=>an address)
[COUNTRY]=>NL
[1]=>array(
[NAME]=>other name
[ADDRESS]=>other address
[COUNTRY]=>NL)
Hope this helps.