What snippet are you trying to use. You likely need to explicitly set the sortBy parameter (or similar).
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
I’m using Ditto - 2.0.2 and NewsPublisher - 1.4.
It outputs everything great, but it shows today’s date.. not the one in Manager-"Published date" part (in NewsPublisher [+pub_date+] ).. and I want to change the date on some news (ex. 01.05.2007. tec...)
BASE - Web Design Studio
MODX Ambassador
Website
-
- 7,075 Posts
Also, to add to Ryan’s comment, one thing you have to keep in mind is using [tt]pub_date[/tt] as a parameter (e.g [tt]&sortBy=`pub_date`[/tt] and [tt]dateSource=`pub_date`[/tt]), not [tt]publishedon[/tt]. I have been confused a few times also even knowing this... Hope it helps
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Also in addition to that’s your naslovna_vijesti template look like?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 7,075 Posts
Sorry I shouldn’t have fed you with info before the question came
You have to add the
sortBy and
dateSource parameter :
[!Ditto?&parents=`2` &sortBy=`pub_date` &dateSource=`pub_date` &extenders=`summary,dateFilter` &paginate=`0` &display=`10` &total=`10` &removeChunk=`Comments` &tpl=`naslovna_vijesti` &trunc=`0` &truncText=`Opširnije...`!]
Edit : Wait a minute... I see you’re using the startID parameter : which version of Ditto are you running ? If it’s 2.x you should change that to
&documents or
&parents
Edit 2 : re-read the thread, you’re using 2.0.2 you should not use startID anymore, and I am surprised it works since you don’t have [tt]&extenders=`compatibility`[/tt] in your Ditto call. Or maybe Mark had it load by default ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id