Tried everything I can think of on this now and still no luck,
Why does this
[!Ditto?&parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`!]
output this
product number 3
by Default admin account on 22-Dec-07 13:58
Thats I guess is some kind of default output for the id=48 child pages
Can anyone give me some idea of something else to try so the &tpl=`vans_sold` starts to include that chunk
Cheers
-
MODX Staff
- 2,502 Posts
Try putting spaces between your parameters. I have had problems of ditto only parsing the first or last paramater if there is no spaces.
See below:
[!Ditto? &parents=`48` &tpl=`vans_sold` &display=`all` &summarize=`5` &paginate=`1` &paginateAlwaysShowLinks=`1`!]
Hope this helps.
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
ok Solved it, the problem was after the opening [[ditto? i did not leave a space before the &parents=.....
I did not know it required a space hence I was not looking at this as a problem but anyway all ok now and thanks to everyone that has helped.
For anyone else having the same problem below is the final call that works
[[Ditto? &parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`]]
Cheers
Ian
-
MODX Staff
- 2,502 Posts
I am not sure if it is required but I would think that spacing the parameters would be a good idea also. It won’t hurt and with spacing it will work for sure (provided the call is actually valid).
Cheers,
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
It is good practice, but I do not use spacing, or & on the first passed variable.. never had probs.