-
- 256 Posts
I’d like a small sidebar-esque listing of the 5 latest articles published in a certain container on my site. How would I do this? I wasn’t sure if I use Ditto or Reflect, and the only example on the demo content uses Listindexer
PM me to find out how you can get a FREE ipad 2!
-
- 256 Posts
I figured ditto would be the best option, but I am unsure how to get it working.
PM me to find out how you can get a FREE ipad 2!
-
- 150 Posts
There are tutorials on the Ditto site, but the basic usage is fairly straight forward. Make your snippet call and go through the various parameters, adding in calls for each parameter that needs to be changed from the default.
Tutorials:
http://ditto.modxcms.com/tutorials.html
Parameters:
http://ditto.modxcms.com/files/snippet-ditto-php.html
Don’t forget to use backticks (`) for the values, not single quotes (’). Backticks are the top left key usually, underneath ESC.
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
-
- 256 Posts
Thanks! I’d seen the tutorial pages before, but had forgotten about them.
PM me to find out how you can get a FREE ipad 2!