- This topic has 3 replies, 2 voices, and was last updated 13 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Events Filtering Format
Tagged: filter
On one page, I want to filter by categories and months. On another page, just by categories. But I want the form to say:
Select Category: <drop down> [Filter]
(it actually says submit and I want it to say Filter, but that’s another issue)
So in the settings box if I put:
Select Category: #_FILTER_CATS
Select Month: #_FILTER_MONTH
on the page where I just want cats, I still get the “Select Month:” text. Are there conditionals for Event Filters?
See http://www.e-dynamics.be/bbpress/topic.php?id=1487
you want to use the “fields” option
Right, I know how to use the fields option to pick which drop downs I want to show. What I’m saying is that if I have my filter format like this:
<div class=”filters”>
<div class=”categories”>Select Category: #_FILTER_CATS</div>
<div class=”months”>Select Month: #_FILTER_MONTHS</div>
</div>
And then somewhere on the site I use: [events_filterform fields=category]
I get:
Select Category: [drop down list of categories]
Select Month:
[Submit]
See – the “Select Month” show up even when I don’t have the month drop down (of course it does because there’s no where to tell it not to)
So I either need a conditional to say don’t print when FILTER_MONTHS isn’t there or I need a way to define the formatting for each instance of [events_filterform]
Hopefully that makes more sense.
O, I see. There you need a conditional tag that checks the content of the placeholder:
[events_if tag="#ESC_FILTER_MONTHS"]<div class="months">Select Month: #_FILTER_MONTHS</div>[/events_if]