We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Here's another way to go. Put this tag in the templates that should get the button, near the top of the body section (above any *content tag):


    [[ShowButton]]


    Put the button HTML code in a chunk called "MyButton".

    Put this placeholder in the content where the button should appear:

    [[+MyButton]]


    Create a snippet called ShowButton with this code:


    <?php
    $chunk = $modx->getChunk('MyButton');
    $modx->setPlaceholder('MyButton', $chunk);
    return '';
      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