Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi,

is there a posibility to display a svg as svg code like in normal php with `file_get_contents`?
Also if the SVG comes from a file-field form the backend?

Cheers
Could you please share what the use-case is?
1) Any file content can be inserted "as-is". I created a function for it available in repository show-file function

Could be used as simple as

Code: Select all
<cms:call 'show-file' 'images/test.svg' />

KDJFS wrote: is there a posibility to display a svg as svg code like in normal php with `file_get_contents`?


2) Backend field must be a textarea with no_xss_check='1' parameter. Then it will not mess with content of the field.

KDJFS wrote: Also if the SVG comes from a file-field form the backend?
Thanks!
4 posts Page 1 of 1