Events Booking View query string

More
9 years 7 months ago #72998 by Dima
Events Booking View query string was created by Dima
Hello,
I need a list of possible options to add to "Query String" field in "Events Booking View" module.
I have not found it in documentation.
In my case I need to be able to load from category but limit to certain number of items. I dont want to load all of the category items.
I would also need, if possible, to be able to filter them for instance by date, or date range or other parameters.
Thanks

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #73043 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking View query string
Hi Simon

Query String parameter is different based on the "view" you want to display in the module.

In your case, you use category view, so you can use the following paramters:

1. id

2. search

3. filter_order

4. filter_order_Dir

So as I can see, it could not be used to filter events to meet your need based on your requirement

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #73057 by David
Replied by David on topic Events Booking View query string
Could you give us an example please ?

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #73076 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking View query string
You can enter id=2&search=the_sameple_search_string

Then the system will display events from category with id=2 and has the title or description match the the_sameple_search_string which you entered above

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #76948 by Jeff
Replied by Jeff on topic Events Booking View query string
Okay, I got the query string so it displays the correct category in the correct layout. Now, I need to know how to make the module only display the next event. Just one.

Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #76949 by James Riley
Replied by James Riley on topic Events Booking View query string
Go to [Extensions > Modules] and edit your [Events Booking Upcoming events] module instance. Set the value of [Number Events] to 1 and you should be set :)

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #76950 by James Riley
Replied by James Riley on topic Events Booking View query string
Oops -- looks like you weren't talking about the actual Upcoming Events MODULE :( My bad.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #76966 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking View query string

Sean wrote: Okay, I got the query string so it displays the correct category in the correct layout. Now, I need to know how to make the module only display the next event. Just one.

Thanks!


Try append limit=1 to the query string. It will display 1 event instead of multiple events

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #81407 by Dryfive
Replied by Dryfive on topic Events Booking View query string
Is it possible in add a query that would allow the module to show past events for the last 6 months, and displaying the most recent to oldest?

Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #81446 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking View query string
Hi Dryfive

Unfortunately, it is not possible. The query string here is the variables which are passed as a GET request. It is not a SQL query, so basically, it is not possible to do what you want with this module

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc