I’m trying to get ditto to output by the closest upcoming date in a TV but can’t get it to work properly. Can anyone look at this and let me know what’s wrong. Using EVO. "startDate" is my TV.
[[Ditto? &startID=`18` &summarize=`10` &removeChunk=`Comments` &tpl=`eventInfo` &paginate=`1` &orderBy=`startDate ASC` &dateSource=`startDate` &sortOrder=`DESC` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]
Thanks
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com
-
☆ A M B ☆
- 24,524 Posts
Get rid of the "&sortOrder" parameter; that is handled with the &orderBy parameter.
Did that, Susan, still doesn’t change anything. (Cleared cache etc).
[[Ditto? &startID=`18` &summarize=`10` &removeChunk=`Comments` &tpl=`eventInfo` &paginate=`1` &dateSource=`startDate` &orderBy=`startDate ASC` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com
Try uncached form like... [!Ditto? ... !]
Tried that. Doesn’t change anything. I’m stumped and not happy. The site is live now. This seemed easier in 9.6whatever. Is there anything that needs to be installed or changed at all for this to work?
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com
How have you configured your startDate TV ?
Does that output UNIX time value ?
And what is not working properly ?
Does it sorted by other parameter (like creatdon or something) ?
Fixed it. I changed the code to:
[!Ditto? &startID=`18` &summarize=`3` &removeChunk=`Comments` &tpl=`eventsFP` &paginate=`1` &dateSource=`beginDate` &sortBy=`beginDate ASC` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`!]
Used sortBy instead of orderBy
Thanks for the help.
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com
KP52
How should the snippet call look, then. I’d like to get it right as it’s something I use often.
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com