Hi
In my App I create PDF files from values in CouchCMS and save them e.g. in media/file/...
Works perfectly. But I‘d like to create these files as securefiles, meaning to set the appropriate data to the editable field of type ˋsecurefile‘ in the cloned page.
So I would generate the pdf an save it woth random filename to random foldername (save these values of course), but how to set these values to the securefile editable and get a file id?
Can I do this with couch tags or do I have to insert it woth an sql query?
@edit: eventually like:
Olliwalli
In my App I create PDF files from values in CouchCMS and save them e.g. in media/file/...
Works perfectly. But I‘d like to create these files as securefiles, meaning to set the appropriate data to the editable field of type ˋsecurefile‘ in the cloned page.
So I would generate the pdf an save it woth random filename to random foldername (save these values of course), but how to set these values to the securefile editable and get a file id?
Can I do this with couch tags or do I have to insert it woth an sql query?
@edit: eventually like:
- Code: Select all
<cms:db_persist
_invalidate_cache = '0'
_masterpage = 'my_template.php'
_mode = 'create'
...
securefile=secure_file_path_and_name
...
/>
Olliwalli