I can't say for sure, this would need checking.
You can create an attachment entity with record\create function. Try passing the text in the 'content' attribute.
Note that you would also need to solve an access problem. Your attachment record should be accessible for regular users. You can assign the attachment to a specific parent (parentType and parentId attributes) or the 'related' field.
HTML WYSIWYG-Field
Collapse
X
-
Hi yuri,
i have an extension called “HTML Dashlet”.
The download works in the dashlet.
I need a field type HTML for my entity
or is there the possibility to create a TXT via formula-script?Leave a comment:
-
i think, base64 as file will not work. Search in internet by search "summernote" (that is the editor).Leave a comment:
-
Hello Victor,
I would like to generate a text file from various data from an entity.
Leave a comment:
-
HTML WYSIWYG-Field
Hello,
I would like to load a file in the WYSIWYG-Field.
Example:
<a download="test.txt" href="data:text/plain;base64,aGVsbG8Kd29ybGQ=">Download</a>
But this is probably ignored by the HTML.
Thanks for ideasTags: None
Leave a comment: