I followed Sonjas Cookbook to create PDF preview images. I want to add a template to the generated image. To apply the template I added the ‘template’ in the return value of the 'preview in the index.php:
No, I’ve tried this already with no luck.
The txt for the jpg is created when I click the Choose (Auswählen) button. But the txt file contains only the uuid.
Sorry, I missed the snippets for the template at the end of the cookbook.
I thought preview file method refers to previewing the image in the panel. So of course the assignment of the file template didn’t work. Because the method is only called by the template file for the frontend.