We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49272
    • 3 Posts
    I have created a custom Eventcalendar with the following structure:

    - Event 1 (Modx-Ressource 1)

    Date/Time 1 (Migx-TV-Record) (i.e. 01-02-2016)
    Date/Time 2 (Migx-TV-Record) (i.e. 01-03-2016)
    ...
    - Event 2 (Modx-Ressource 2)
    Date/Time 1 (Migx-TV-Record) (i.e. 01-04-2016)
    Date/Time 2 (Migx-TV-Record) (i.e. 01-01-2016)
    ...

    That means that the Modx-Ressource has some Information about the Event (like Ticketprice, Description, Title...) and multiple Eventdates/-times stored in a Migx-TV.

    That worked so far... But i try to make a Output which i can sort by date, limit and so on... Maybe the output looks like this:

    Event 2, Date/Time 2 (i.e. 01-01-2016)
    Event 1, Date/Time 1 (i.e. 01-02-2016)
    Event 1, Date/Time 2 (i.e. 01-03-2016)
    Event 2, Date/Time 1 (i.e. 01-04-2016)

    How can i get this done? Sorry for my bad English.
      • 4172
      • 5,888 Posts
      I think, it would be better, to store all Eventdates into a custom-table and use a MIGXdb - TV to manage them.
      Or, maybe use migxCalendars for the whole thing, which stores everything Events and Eventdates into custom-tables (no MODX-resources envolved).
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!