I'm looking for a way to prepend a string to a Smarty variable. I have a dynamic form having element-names like input-1
(where 1 is the id of the setting/field).
I've tried to do this with {capture}{/capture}
but this only seems to work the first time (as the fields are displayed by a loop).
Is there an opposite function from |cat:'text'
for Smarty, or do I have to:
- Create my own modifier
- Rename inputs