In EE document, there is an example of “Category Dropdown Menu”.
<form name="catmenu" action="">
<select name="selcat">
<option value="">--Select Category--</option>
{exp:channel:categories channel="yourchannel" style="linear"}
<option value="{path='channel'}">{category_name}</option>
{/exp:channel:categories}
</select>
</form>
When I used this in EE 2 book, it produced the following code.
<form name="catmenu" action="">
<select name="selcat">
<option value="">--Select Category--</option>
<option value="http://localhost/ee/index.php/channel/category/news">News</option>
<option value="http://localhost/ee/index.php/channel/category/world">World</option>
...
...
I need the link to be like this.
http://localhost/ee/index.php/news_articles/page/category/world
rather than
http://localhost/ee/index.php/channel/category/world.
Q1. What do I need to change in the original code?
Q2. What is this line in the original code doing?
onchange=“location=document.catmenu.selcat.options[document.catmenu.selcat.selectedIndex].value