Hi,
I'm new to Wayfinder. I could insert a drop down menu that works perfectly with Firefox but not with MSIE 7.
My menu looks like the demo menu here :
http://www.cssplay.co.uk/menus/final_drop2.html(as I use the same stylesheet), but I cannot find out which parameters are used, i.e. what content to put in my chunks.
I assume that the demo uses the outerTpl, rowTpl, parentRowTpl and cssTpl parameters.
I set my chunks as follow :
AP_wfd_outerTpl :
<ul>
[+wf.wrapper+]
</ul>
AP_wfd_rowTpl :
<li><a href="[+wf.link+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
AP_wfd_parentRowTpl :
<li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
[+wf.wrapper+]
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
AP_wfd_cssTpl :
<link rel="stylesheet" media="all" type="text/css" href="ultimate_drop.css" />
And my template inserts the Wayfinder snippet this way :
<div class="menu">
[!Wayfinder? &startId=`49` &level=`0` &parentRowTpl=`AP_wfd_parentRowTpl` &outerTpl=`AP_wfd_outerTpl` &rowTpl=`AP_wfd_rowTpl` &cssTpl=`AP_wfd_cssTpl`!]
</div>
In MSIE 7, outputed HTML is as follow :
<div class="menu">
<ul>
<li><a href="/mysite/index.php?id=56" title="Feuilles d'automne">Feuilles d'automne<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="/mysite/index.php?id=48">Feuilles jaunes</a></li>
<li><a href="/mysite/index.php?id=54">Feuilles brunes</a></li>
<li><a href="/mysite/index.php?id=55">Feuilles rouges</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
</div>
I assume that the problem is due to wrong chunks.
In particular, I dont't understand well what looks like conditional instructions.
<!--[if IE 7]><!--></a><!--<![endif]-->
Looks like strangely closed HTML comments... Conditional chunks processed by MODx ?
Who is able to explain ?
Thanks for any help.