I want to give my client the ability to visually select a file from one of my file-folders in safecracker. I was thinking of using an embed with {exp:assets:files}
loop in there, something along these lines:
{exp:assets:files folder_id='1' kind='image'}
<li><a href="#" data-url="{url}"><img src="{url}" alt="{filename}"></a></li>
{/exp:assets:files}
Now what would I feed back to the safecracker-form in order for my assets-field in this entry to be updated with the file I just clicked? Should I feed the file's url to a hidden <input>
element?
Thanks,
- Steven