Thanks for that, sottwell. That fixed that problem.
I now have a new problem with the same menu. The new problem is when I test the menu, a blank link appears, just underneath the menu button and before the actual menu. Can someone please have a look at what the problem could be, and tell me how to fix it?
This how it looks when I select the source code in my browser:
<li><a href="/index.php?id=5" title="Product Range" >Product Range</a>
<ul>
<li><a href="" title=""></a></li>
<li><a href="/index.php?id=6" title="Bull Wheel Tensioning Units" >Bull Wheel Tensioning Units</a></li>
<li><a href="/index.php?id=7" title="Cable Drum Stands" >Cable Drum Stands</a></li>
<li><a href="/index.php?id=8" title="Crane Erector Borers" >Crane Erector Borers</a></li>
<li><a href="/index.php?id=9" title="Pole Jinker Trailers" >Pole Jinker Trailers</a></li>
<li class="last"><a href="/index.php?id=10" title="Self Loading Cable Trailers" >Self Loading Cable Trailers</a></li>
</ul></li>
Here is my updated code:
Wayfinder call:
[[Wayfinder? &startId=`0` &level=`2` &outerTpl=`my.OuterTplTopMenu` &innerTpl=`my.InnerTpl`]]
my.OuterTplTopMenu chunk:
<ul [+wf.classes+]id="mainMenu">
[+wf.wrapper+]
</ul>
my.InnerTpl chunk:
<ul><li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>[+wf.wrapper+]</ul>