I’m using the following code to build up the navigation. Basically I exclusively writes API based code and tries to avoid chunks.
$nav = $modx->runSnippet(
"Wayfinder",
array( "startId" => "0",
"level"=>"2",
"textOfLinks"=>"title",
"outerClass" => "menu",
"firstClass" => "first",
"lastClass" => "last",
"hereClass" => "here"
)
);
Is it possible to set an alternative html output directly in this snippet call? I’ve tried som different procedure like;
$nav = $modx->runSnippet(
"Wayfinder",
array( "startId" => "0",
"level"=>"2",
"textOfLinks"=>"title",
"outerClass" => "menu",
"firstClass" => "",
"lastClass" => "",
"hereClass" => "",
"outerTpl" => '<ul id="topnav"[+wf.classes+]>[+wf.wrapper+]</ul>'
)
);
The outerTpl parameter doesn’t affect the output at all. What am I doing wrong. Is there an other way of alter the output by code/API?