if ($sortBy != 0 && ($sortBy == "createdon" || $sortBy == "editedon" || $sortBy == "pub_date" || $sortBy == "unpub_date" || $sortBy =="deletedon")) { if ((!empty($sortBy)) && ($sortBy == "createdon" || $sortBy == "editedon" || $sortBy == "pub_date" || $sortBy == "unpub_date" || $sortBy =="deletedon")) {
As I said earlier, MODx does not set publishedon when saving a document unless the user expressly sets it. Therefore a complex inline SQL query swaps between publishedon and other fields like it with createdon if the value of the field is 0.
- in "save_content_processor.php" (though it doesn’t do it very well at the moment - see here)!!@Ulrich: THANK YOU THANK YOU THANK YOU.
seems to fix the problem.
[[Ditto? &tpl=`DittoTemplate` &startID=`12,13,14` &summarize=`3` &multiLevel=`1` &truncLen=`200` &hideFolders=`1` ]]
<div class="clanak"> <h2><a href="[~[+id+]~]">[+title+]</a></h2> <div>[+summary+]</div> <p>[+link+]</p> <br /> <small><p><strong>[+author+]</strong> | datum: [+date+]</p></small> </div>
This discussion is closed to further replies. Keep calm and carry on.