Results 1 to 7 of 7

Thread: Load event list module with dynamic parameter

  1. #1
    User
    Join Date
    11-24-13.
    Posts
    44

    Default Load event list module with dynamic parameter

    Hi!
    I have 30 calendars in one contao installation, and 30 pages each of them that have to hold an event list module.

    Is there an alternative solution to create 30 modules event list? For example, passing the calendar id to the insert tag that loads the same event list module {{load_module::id_module_eventlist::calendar_id}} ?

    Thank you!

    Davide

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Not with insert tags. You can use one module for all archives and filter them depending on page with this HOOK https://github.com/contao/core/blob/...vents.php#L176
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    You could try to create listing module using table tl_calendar_events as source and appopriate columns (title, tstamp, startTime, endTime, startDate, etc. whatever you need).

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Quote Originally Posted by tetrijeb View Post
    You could try to create listing module...
    But this way he will lose all features of the event list module.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    Quote Originally Posted by Andreas View Post
    But this way he will lose all features of the event list module.
    Sure, in that case he would have to create custom/modify existing template. I am wondering is it worth of it.
    Last edited by tetrijeb; 11/06/2015 at 16:03.

  6. #6
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    I don't think that it's worth the effort.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  7. #7
    User
    Join Date
    11-24-13.
    Posts
    44

    Default

    Andreas, interesting solution, thank you! I'll try

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •