Hi, searched a lot, can’t find solution. I would like to add EDIT links to frontend. It’s very necessary feature, as many times I can notice something wrong in certain page, and it’s much easier to edit when I am already at that page, rather that open panel and look for it there.
So, what I need to do, is to show some code on frontend, if I am logged in. Something like:
<?php if(I_AM_LOGGED_IN): ?> <a href="/panel/pages/parent-slug">EDIT</a> <?php endif ?>
and link should be different for inner pages: /panel/pages/parent-slug+inner-page-slug