Events Made Easy Forums How do I … Events Filtering Format

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43485
    Anonymous
    Inactive

    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?

    #48579
    Franky
    Keymaster

    See http://www.e-dynamics.be/bbpress/topic.php?id=1487

    you want to use the “fields” option

    #48580
    Anonymous
    Inactive

    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.

    #48581
    Franky
    Keymaster

    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]

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top