We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8740
    • 36 Posts
    I’m working on making a blog and when I click on an entry to bring up that document, I want to be able to parse the
    [+ +] tags, but I don’t want ditto to display anything. How can I achieve this?
      • 8740
      • 36 Posts
      I ended up making a snippet named show and used the API function documentObject to get what I needed.

      usage:
      [[show?tag=pagetitle]]

      code:
      <?php
      $ret = $modx->documentObject[$tag];

      if($tag == ’createdon’)
      {
      $ret = date(’d-M-y h:m’, $ret);
      }

      return($ret);
      ?>