I basically have this code:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>{$root.page.contentgroup.Directory[0]}</td>
<td>{$root.page.contentgroup.Title[0]}</td>
<td>{$root.page.contentgroup.Description[0]}</td>
</tr>
</table>
I would love to add a button, and when I click it, it generate 3 txt files. When the script generate the txt file, it should locate them according to {$root.page.contentgroup.Directory[0]}. For example:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>mydirectory</td> {**directory.txt**}
<td>mytitle</td> {**title.txt**}
<td>mydescription</td> {**description.txt**}
</tr>
</table>
[SUBMIT]
When I click submit, the script generate the 3 txt files and locate them on
mysite/folder/{$root.page.contentgroup.Directory[0]}/directory.txt
mysite/folder/{$root.page.contentgroup.Directory[0]}/title.txt
mysite/folder/{$root.page.contentgroup.Directory[0]}/description.txt
what is the better way to do it? I can use only smarty functions (((
Thank you