I was able to make conditionals work
However now I'm having problems making loops work! I have tried different solutions that I have found on this forum but none worked. Perhaps doing something wrong, but I can't seem to figure out what exactly that is.
My php code returns the following loop:
Title (1)
Subtitle (1)
Something1
Something2
...
Subtitle (2)
Something3
...
...
Title (2)
etc.
I created a template, that after reading some urls said that it would automatically loop, using the following code
Code: Select all
Template:
<mos:tmpl name="rows">
<u>{items_Title}</u>
</mos:tmpl>
php template call:
// returns 2 $row
foreach ($rows as $row) {
$title = $row->title;
$tmpl->addObject( 'rows', $rows, 'items_');
}
Code: Select all
{items_Title} {items_Title}
Code: Select all
Title1 Title2