in template for module I would like to have expandable/collapsable section. It is in foreach, so I am trying to supply unique id for every collapsable section through:
Code: Select all
{startExpandCollapse id='section{0|rand:100}' title='Zobrazit / Skrýt odpověď'}
<tr>
<td colspan="2">{$entry->answer}</td>
</tr>
{stopExpandCollapse}
If I remove {0|rand:100} part, it seems, that only problem is dual id (the error above doesn't appear). I tested random smarty plugin and it works properly.Error: The expand/collapse plugin requires that both parameters (id,title) are used.' title='Zobrazit / Skrýt odpověď'}
What am I doing wrong?
Milhaus