did a simple test of getresources here’s
the myditto (still called it ditto) tpl
<div class="ditnewscontainer" id="ditnewscontainer">
<div class="calender" id="calender">
<div class="month" id="month">[[+publishedon:strtotime:date=`%b`]]</div>
<div class="day" id="day">[[+publishedon:strtotime:date=`%d`]]</div>
<div class="year" id="year">[[+createdon:strtotime:date=`%Y`]]</div>
</div>
<div id="ditpost">
<h2 class="head2"><a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a></h2>
<div class="ditto_info" >By <strong>[[+createdby:userinfo=`username`]]</strong>. </div>
<span class="summary">[[+introtext]]</span>
<span class="ditto_link" id="ditto_link"><a href="[[~[[+id]]]]"><span>Read more</span></a></span>
</div>
</div>
and the call:
[[!getResources? &parents=`8` &limit=`3` &tpl=`myditto`]]
and tried this call as well used with getpage:
[[!getPage? &element=`getResources` &parents=`8` &depth=`2` &limit=`10` &pageVarKey=`page` &includeContent=`1` &tpl=`myditto`]]
nothing appears in the parent resource where the snippet is located. have read the docs here:
http://rtfm.modx.com/display/ADDON/getResources
think I will stick with ditto right now, but I can’t fix the date, the year was solved by bob, but when using the strtotime with the b and d parameters, nothing appeared or the month was changed to a numerical value, in my case, a 57.
EDIT THIS IS WEIRD, I TRIED WHAT BOB HAD SUGGESTED, AND IT WORKED, BUT ONLY AFTER REMOVING THE UCASE ON THE DATE,
<div class="month" id="month">[[+createdon:strtotime:date=`%b`]]</div>
<div class="day" id="day">[[+createdon:strtotime:date=`%d`]]</div>
<div class="year" id="year">[[+createdon:strtotime:date=`%Y`]]</div>
WITHOUT THE UCASE, IT PLAYS NICE AND DITTO IS WORKING JUST FINE. THANKS BOB!