Edit single page contents with edit mode
PermalinkFor blocks it's simple, there's edit.php and controller handles that.
But how can I make my single page controller know, that the page is in edit mode?
Jon
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
Here it is:
<?php global $c; if ($c->isEditMode()) { ?> Do something here <?php } ?>
I'm putting that to my page and showing the forms when page is in edit mode. Otherwise, I show the usual info.