🌍
English
Hello,
I tried adding my own custom php to the footer.tpl file:
<?=date('Y'); ?>
When the page is loaded in a browser it gets rendered as:
<!--?=date('Y'); ?-->
So nothing is displayed. How can I get it to NOT add html comments to my code?
Thank you
Offline
Hello
You can't add php in template files. Only Smarty syntax. See the documentation on the official website to find how to achieve what you want.
If it is not possible you must create a plugin with php scripts, template variables assignment and custom template (see Skeleton extension for concrete examples)
Offline
Ah, ok. This is my first time working with Piwigo.
I'll look into that, thank you.
Offline