Hi all,
I have the pleasure to again use Modx which i always liked
A tiny and very simple snippet which i found quite convenient when you have a lot of resources and need to make some editing, instead of going thru the manager and browse the whole resources site tree each time
<?php
if ($modx->user->isMember('Administrator')) {
$edit_link = '<a href="/manager/?a=resource/update&id=[[*id]]">edit</a>';
return $edit_link;
}
then you insert [[!edit_link]] (name of your snippet) into e.g. bottom of the pages or below footer links...
Here the "edit" link will only show up when you are logged in as an admin (easy to adjust using other groups, user's own resources, etc
Hope this is helpful to the non experts like myself
[ed. note: justinet last edited this post 6 years, 8 months ago.]