Hi All,
I’m trying to recreate the jumpto navigation select box that is on modxcms.com on the following page
http://modxcms.com/forums/index.php?action=search2 using wayfinder. I tried to do an eform call with a wayfinder call as the form template, and have not gotten it to work correctly. The test jump to page is at
http://www.youngsbicycleshop.com/index.php?q=161Here are all my calls and chunks:
I put this script in the head section:
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_scripturl = "http://www.youngsbicycleshop.com/index.php?q=";
var smf_tail = ".html";
var smf_iso_case_folding = false;
var smf_charset = "ISO-8859-1";
// ]]></script>
<script type="text/javascript">
I used this as my eform call:
[!eForm? &formid=`navPull` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`navPull` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &cssStyle=`ContactStyles` !]
My navPull chunk is :
[[Wayfinder? &startId=`0` &outerTpl=`select.OuterTpl` &rowTpl=`innerSelect` &titleOfLinks=`alias` ]]
I used this as my select.OuterTpl chunk:
<form name="navPull" id="navPull" action="http://www.youngsbicycleshop.com" method="get" accept-charset="ISO-8859-1">
<label for="navPull">Jump to:</label>
<select name="navPull" id="navPull" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value + smf_tail;">
[+wf.wrapper+]
</select>
<input type="button" value="go" onclick="if (this.form.navPull.options[this.form.navPull.selectedIndex].value) window.location.href = 'http://www.youngsbicycleshop.com' + this.form.navPull.options[this.form.navPull.selectedIndex].value;" />
</form>
My innerSelect chunk is :
<option[+wf.classes+]><a href="[+wf.link+]" value=`[+wf.title+]` title=`[+wf.title+]` >[+wf.linktext+]</a>[+wf.wrapper+]</option>
I am not a javascript/php/ guru, and have have clearly made a mistake. If you can help me correct my calls / chunks so that it will work I would really appreciate it.
Many Thanks,
Noah