Pardon the title....for some reason my DITTO call is having an undesired effect!
[!Ditto? &startID=`11` &tpl=`newstpl` &extenders=`summary` &total=`5` &showInMenuOnly=`1` !]
I am trying to call ditto to list 5 children of parent 11.
Ditto is doing this, however it is ignoring the parameter &showInMenuOnly=`1`
If I un-check "show in menu" DITTO still pulls through the children?
I can’t see a problem with the snippet call?
"startID" is not a Ditto’s parameter -- you shoul write &parents=`11`
-
☆ A M B ☆
- 24,524 Posts
I know the feeling... had a husband and three teenaged boys

That’s why I took up computers - they always do exactly what you tell them to. The only problem is that I find I’ve often not told it to do what I thought I did
Anyway...
I believe that &display would server you better than &total; &display tells it how many to list, &total tells it how many to fetch from the database. You can use &depth to indicate how deep into your tree structure you want it to go.
This may be useful
http://ditto.modxcms.com/files/snippet-ditto-php.html