Comments Marcello started the conversationMarch 16, 2023 at 5:31pmDear support team, I have multiple events tables in one page and i whould use an external date picker to pre-filter the dates on all the Amelia event tables. Is it possible to pre-filter the date using url parameters or something else? Thank youMarcello 2,572Aleksandar repliedMarch 17, 2023 at 2:50pmHello Marcello.Amelia doesn't have any features like this built-in, but we will reach out to our developers and see if there's a way to do this.Can you please explain in a bit more detail how this would work?Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Marcello replied privately 2,572Aleksandar repliedMarch 20, 2023 at 10:53amThank you, Marcello.I forwarded this to our developers and as soon as I hear from them, I'll get back to you.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 2,572Aleksandar repliedMarch 22, 2023 at 6:41pmHi again Marcello.We have this hook: ameliaEventsLoadedYou can try this custom solution, but please note that you need to modify it based on your URL params: <script>window.ameliaEventsLoaded = (events) => { //const myUrl = new URL(window.location.toLocaleString()) //const dateFromURL = urlParams.get('date') let dateFromURLparams = new Date(new Date().getTime() + (10 * 24 * 60 * 60 * 1000)) // change this number with URL param u got above let filteredEvents = events.filter(event => new Date(event.periods[0].periodStart) > dateFromURLparams) // you can add 2 dates here (from/to) let filteredEventsIds = filteredEvents.map(event => event.id) let allEventsIds = events.map(event => event.id) let eventsToHide = allEventsIds.filter(id => filteredEventsIds.indexOf(id) == -1)let intervalId = setInterval(() => { eventsToHide.forEach(event => { let element = document.getElementById("am-event-" + event) if (element) { element.style.display = "none" clearInterval(intervalId) } }) }, 200)}</script>Let me know if that helps.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail TablesMarcello repliedMarch 23, 2023 at 2:01pmHello Aleksandar,we have tried the snippet code you sent us and it partially works. However, we are experiencing a problem with the pagination.Is there a way to disable pagination and show all events that match the date? Thanks 2,572Aleksandar repliedMarch 24, 2023 at 10:12amHello Marcello.The only way you can change the pagination is by adjusting the "Default items per page" option in Amelia's General Settings:"30" is the maximum option, and we set it to be 30 because a larger value would increase the loading time of the page.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Dear support team,
I have multiple events tables in one page and i whould use an external date picker to pre-filter the dates on all the Amelia event tables.
Is it possible to pre-filter the date using url parameters or something else?
Thank you
Marcello
Hello Marcello.
Amelia doesn't have any features like this built-in, but we will reach out to our developers and see if there's a way to do this.
Can you please explain in a bit more detail how this would work?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you, Marcello.
I forwarded this to our developers and as soon as I hear from them, I'll get back to you.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi again Marcello.
We have this hook:
You can try this custom solution, but please note that you need to modify it based on your URL params:
Let me know if that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar,
we have tried the snippet code you sent us and it partially works.
However, we are experiencing a problem with the pagination.
Is there a way to disable pagination and show all events that match the date?
Thanks
Hello Marcello.
The only way you can change the pagination is by adjusting the "Default items per page" option in Amelia's General Settings:
"30" is the maximum option, and we set it to be 30 because a larger value would increase the loading time of the page.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables