Using Drupal 6, Views 2 with exposed filters, I'm trying to determine the best way to convert the select list to a list of links, each with a count of matching nodes. For instance instead of what I get by default, as a select list:
<select name="state" class="form-select" id="edit-state" >
<option value="All" selected="selected"><Any></option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
...
</select>
I'd like to get something like
<p>Restrict results by state:<br />
<a href="...">Alabama (15)</a><br />
<a href="...">Alaska (7)</a><br />
...
</p>
With each link showing the count in parentheses and drilling down in the same way that selecting one of the options in the first code block would.
Could you provide any pointers on how to approach this? Thanks.