We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29860
    • 59 Posts
    Hi

    I seem to be having where by making the following call, all I get back is just the "vouchercodes" chunk. I am using Evo 1.0.3

            $dittoOutput = $modx->runSnippet("Ditto",
                        array(
                            'tpl'=>'vouchercodes',
                            'startId' => 81,
                            'display' => 5,
                            'sortBy' => 'MenuIndex',
                            'noResults' => 'no vouchers'
                            )
                    );
    


      • 15083
      • 697 Posts
      Hi there,

      You are suppose to get back the vouchercodes chunk, but with your placeholders replaced with content.
      Does vouchercodes have Ditto placeholders in it?

      J
        • 4310
        • 2,310 Posts
        Try :
        $dittoOutput = $modx->runSnippet("Ditto",
                            array(
                                'tpl'=>'vouchercodes',
                                'parents' => 81,
                                'display' => 5,
                                'orderBy' => 'menuindex ASC',
                                'noResults' => 'no vouchers'
                                )
                        );