We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44661
    • 31 Posts
    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

    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 5 years, 10 months ago.]
    • QuickBar can also do that: https://modx.com/extras/package/quickbar smiley
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 44661
        • 31 Posts
        Quote from: markh at Jul 06, 2018, 02:15 PM
        QuickBar can also do that: https://modx.com/extras/package/quickbar smiley

        Yes this sounds like a common need...
        not willing to reinvent the wheel for sure,
        however each time i can find a quick and easy way to meet my needs, i try and write my own snippets to learn and not use less known extras which could be heavier (designed to satisfy more requirements at once, evo, revo, etc) and which take me longer to fully understand...
          • 3749
          • 24,544 Posts
          If the users don't need to be in the Manager, you can also use NewsPublisher, which will put an "Edit" button on each page for selected, logged-in users that will launch NP so they can edit any resource fields or TVs you want them to be able to edit.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting