hi,
in order to do this you’ll have to use either a chunk or a config file to tell wayfinder what html to output
being a confg file guy, i’ll tell you how to do this with a config file... but it’s the same with chunks
- add &config=`virtual` in your way finder call
- go to the assets/snippets/wayfinder/configs diretory and create a file you’ll name virtual.config.php (as you can see, same name as what you used in wayfinder call, doesn’t have to be virtual :p)
- you have a lot of config examples in the directory but well, yours could be something like that
<?php
$level = 2; //this and all what follows is up to you
$hereClass = 'active';
$firstClass = 'first';
$lastClass = 'last';
$outerTpl = '@CODE:<ul id="nav">
[+wf.wrapper+]
</ul>'; //id="nav" can be what you want an id a class or nothing
$innerTpl = '@CODE:<ul>
[+wf.wrapper+]
</ul>';
$rowTpl = '@CODE:<li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]"><span>[+wf.linktext+]</span></a>[+wf.wrapper+]</li>'; //here it is !!!
?>
done
have swing