We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18331
    • 20 Posts
    First of all tagging works perfectly. The only problem is setting "selected" option for the tag in dropdown menu after reloading page to "tags=".

    I have event list displayed by using ditto. I want to use tags that user could filter events by city. I created TV [*event-tag*] with dropdown menu:

    City1==City1||City2==City2||City3==City3

    My ditto call is:

    [[Ditto? &id=`events` &parents=`61` &showPublishedOnly=`1` &tpl=`ditto-events` &tagData=`event-tag` &display=`10` &noResults=`<p>No results</p>` &paginate=`1` &paginateAlwaysShowLinks='0'  &dateSource=`date` &orderBy=`date ASC` &filter=`date,@EVAL return strtotime('today');,6`]]
    


    At front-end I created navigation dropdown by using this:

    <form action="../">
    <select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
        <option value="[(site_url)]events">All cities</option>
        <option value="[(site_url)]events?events_tags=City1&events_start=0">City1</option>
        <option value="[(site_url)]events?events_tags=City2&events_start=0">City2</option>
        <option value="[(site_url)]events?events_tags=City3&events_start=0">City3</option>
        </select>
    </form>
    


    I’m newbie at such things so... Thanks for any help.