Hi Is it possible to check, if a user is logged in? I would like to show certain elements to editors only. I thought I’ve seen a similar question, but can’t find it anymore, sorry. Florian
FKAP Hi, yes it is possible using the PHP API in a template.
<?php if (\Automad\GUI\User::get()) { ?> Some normal template stuff here that is only visible to users! <?php } ?>
A free forum powered by FreeFlarum (remove this footer)Terms & Conditions | Report This Forum | Privacy Policy