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?
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);
?>