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

    This in-snippet call just won’t run, I get a blank html file:

    $output = $modx->runSnippet(’Wayfinder’,array(
    ’startId’ => ’14’,
    ’level’ => ’1’,
    ’rowTpl’ => ’navRowTpl’,
    ’outerTpl’ => ’navOuterTpl’
    ));

    When I remove the startId line, it outputs as expected. Just for the record, I tried startID, startId and startid, but no luck.

    Any ideas?
    Thanks!
      • 13968
      • 0 Posts
      Very weird, faffed about a bit with apostrophes, rewrote the array and now this seems to work:

      $output = $modx->runSnippet(’Wayfinder’,array(
      ’level’ => ’1’,
      ’rowTpl’ => ’navRowTpl’,
      ’outerTpl’ => ’navOuterTpl’,
      ’startId’ => $currentId
      ));

      Must have been a wrong character or something. Never mind then... smiley