We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4429
    • 429 Posts
    In revolution is ditto still used as before or have the calls changed?

    I keep getting this error:

    &tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.


    for this call:

    [[!Ditto? &startID=`8`&sortBy=`createdon`&summarize=`3` &;total=`5` &tpl=`internal_story_summary` &summary=`1` &paginateAlwaysShowLinks=`1`!]]
      • 12168
      • 19 Posts
      I am having some issues as well

      [[Ditto? &parents=`[[*id]]` &tpl=`xml_content` &sortBy=`createdon`]] ** Problems seems to be [[*id]]

      Result: No documents found.


      [[Ditto? &parents=`10` &id=`news1` &tpl=`news` &sortBy=`editedon` &depth=`3`]] ** Issue editedon, pub_date, publishedon, I’ve tried &orderBy as well..

      Result: No documents found.



      Not exactly sure what’s going on here.
        • 4172
        • 5,888 Posts
        one problem seems to be orderBy or sortBy

        if I use
        &orderBy=`menuindex`

        the generated sql-query ends with:

        ORDER BY modResource.id menuindex


        what is not that what we want and ends as an mysql-error, of course.

        I think we have to seek arround here:

        		/* determine sort conditions */
        		if ($randomize != 0) {
        			$c->sortby('rand()', '');
        		} else {
        			$orderBy['sql'];
        			$sortBy = explode(' ', $orderBy['sql']);
        			$c->sortby($sortBy[0], $sortBy[1]);
        		}
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!