• Resolved awesomemeg13

    (@meghanfinkle)


    Hi!

    I was wondering if there is a way to “Sort” the events?

    I have 4 columns setup: Date, Location, Category, Name … I want people to be able to sort by all 4… for example, they can click Date and the columns will sort by date… do you get what I mean? Is this possible with the shortcodes?

    Thanks so much!

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Unfortunately not, you’d need to use some custom coding to acheive that.

    Something like this might help:
    https://blog.teamtreehouse.com/how-to-code-sortable-tabular-data-with-jquery

    Thread Starter awesomemeg13

    (@meghanfinkle)

    Hi caimin_nwl,

    Thanks so much for the response…

    Do you have any advice on how to setup the table to sort the Events Manager Items? This is how I currently have it setup in the Events > Settings > Formatting > Events area:

    <table cellpadding=”0″ cellspacing=”0″ class=”events-table” >
    <thead>
    <tr>
    <th class=”event-time” width=”100″><h3 style=”font-weight: bold;”>Date</h3></th>
    <th class=”event-description” width=”*”><h3 style=”font-weight: bold;”>Location</h3></th>
    <th class=”event-time” width=”*”><h3 style=”font-weight: bold;”>Type</h3></th>
    <th class=”event-description” width=”*”><h3 style=”font-weight: bold;”>Name</h3></th>
    </tr>
    </thead>

    <tbody>
    <tr>
    <td style=”padding-bottom: 35px;” valign=”top”>
    #_EVENTDATES
    </td>
    <td style=”padding-right: 25px;” valign=”top”>
    {has_location}#_LOCATIONNAME
    #_LOCATIONTOWN, #_LOCATIONSTATE{/has_location}
    </td>
    <td style=”padding-right: 25px;” valign=”top”>
    #_CATEGORYLINK
    </td>
    <td style=”padding-right: 25px;” valign=”top”>
    #_EVENTLINK
    </td>
    </tr>
    </tbody>
    </table>

    When I try to use that jQuery sort table, it looks like you have to have actual items in the table, it doesn’t seem to be letting me use shortcodes or these kinds of codes #_LOCATIONNAME.

    Any advice would be greatly appreciated. I am happy to donate for your services and time.

    Thanks.

    Thread Starter awesomemeg13

    (@meghanfinkle)

    Hi caimin,

    I have updated my table to read:

    <div class=”demo”>
    <table class=”tablesorter”>
    <thead>
    <tr>
    <th>Date</th>
    <th>Location</th>
    <th>Type</th>
    <th>Name</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>#_EVENTDATES</td>
    <td>{has_location}#_LOCATIONNAME
    #_LOCATIONTOWN, #_LOCATIONSTATE{/has_location}</td>
    <td>#_CATEGORYLINK</td>
    <td>#_EVENTLINK</td>
    </tr>
    </tbody></table></div>

    You can see how it looks in this screenshot:
    https://retailcalendar.com/screenshot.png

    The issue is that the columns won’t sort now. They sorted on the site when I tested it with the demo table but now they won’t sort with the Events information in there.

    Do you have any advice on how to get the columns to sort correctly?

    Thanks!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    base on your screenshot, Im afraid that this is not possible at the moment without custom coding on your part.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sort Events Feature’ is closed to new replies.