We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42101
    • 125 Posts
    Hello!

    Is there an easy and quick way to have a "edit" button on every single page (no pluging) which links to

    .../manager/index.php?a=30&id=14


    I think I could just use something like the page id and a snippet... How can I get the "edit"- url to a page?

    Thank you!!

    AD
      • 42101
      • 125 Posts
      Quote from: ad2003 at Apr 18, 2013, 05:36 AM
      Hello!

      Is there an easy and quick way to have a "edit" button on every single page (no pluging) which links to

      .../manager/index.php?a=30&id=14



      this was quite easy:
       [[!+modx.user.id:is=`1`:then=`
            <a class="login" href="/manager/?a=30&id=[[+id]]" title="edit">Edit Page</a>
        `]] 


      maybe someone can use it
        • 3749
        • 24,544 Posts
        You can also do that with NewsPublisher and the NpEditThisButton snippet.
          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