filter - display as unordered list

Status
Not open for further replies.

aldan

Member
...since we're at the subject, and waiting for the filter to be fixed... would that be a way to display it as a unordered list in stead of a select dropdown?

I see some ul/li rendering in the default_filter.php, but I don't understand when it "kicks in" (if ($this->filterMode === 3 || $this->filterMode === 4)...etc.)?

thanks
 
When you say "display it", you mean an individual dropdown filter?

The code in default_filter.php doesn't format the actual individual filters, that's done in the element model(s). The template code just places those individual element filters appropriately on the page, either in a block above the list, or in the headers for the list, etc. depending on the mode selected in the List settings.

-- hugh
 
hi hugh, i would just want the filter to render as an ul, instead of a select:
so, when i look at the page code, instead of:
<select id="yearfilter" name="yearfilter">
<option value="">All years</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
</select>
to render as:
<ul id="yearfilter" name="yearfilter">
<li value="">All years</li>
<li value="2011">2011</li>
<li value="2010">2010</li>
<li value="2009">2009</li>
</ul>
it's not a big deal, but it would make me happy...:)

thanks
 
Not something we're likely to implement, sorry.

You might be able to achieve it with the new php_events list plugin, or a custom template that replaces that entry in $this->filters.

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top