- Posts: 9
- Thank you received: 0
Link to event or events by id?
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
6 years 4 months ago #120217
by Gareth Jones
Link to event or events by id? was created by Gareth Jones
Hi
I adore your component and have been using it for years. I've modded it all over the shop and continue to do so all the time.
One thing I've always struggled with though, is how to link directly to an event, or events, by their id. The below works on my website, but only with Itemid=204, the purpose of which I don't understand.
As I'm trying to copy one of my mods for a friend, I can't link to any of his events from my script, because they all fail, presumably because Itemid=204 means nothing on his site.
The current link structure is: index.php?option=com_eventbooking&task=individual_registration&event_id=38&Itemid=204
Can you tell me the correct link structure please so I can link to the registration pages of each event?
Thanks
I adore your component and have been using it for years. I've modded it all over the shop and continue to do so all the time.
One thing I've always struggled with though, is how to link directly to an event, or events, by their id. The below works on my website, but only with Itemid=204, the purpose of which I don't understand.
As I'm trying to copy one of my mods for a friend, I can't link to any of his events from my script, because they all fail, presumably because Itemid=204 means nothing on his site.
The current link structure is: index.php?option=com_eventbooking&task=individual_registration&event_id=38&Itemid=204
Can you tell me the correct link structure please so I can link to the registration pages of each event?
Thanks
Please Log in or Create an account to join the conversation.
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
6 years 4 months ago #120218
by Gareth Jones
Replied by Gareth Jones on topic Link to event or events by id?
Ok, I may have just worked part of it out. 204 is actually the id of the table display menu item that displays all events. So I'm guessing it needs that for routing or something?
Please Log in or Create an account to join the conversation.
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
6 years 4 months ago #120221
by Gareth Jones
Replied by Gareth Jones on topic Link to event or events by id?
And to expand further. I'm using 1.7.1 and 2.1.1.
The reason for me doing this is I have several mods that query the database and create tables listing upcoming events with buttons to register, each of which link to the relevant event's registration page.
Thanks
The reason for me doing this is I have several mods that query the database and create tables listing upcoming events with buttons to register, each of which link to the relevant event's registration page.
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 4 months ago #120241
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Link to event or events by id?
In your case, I guess 204 is ID of a menu item which is created to link to event details menu option of Events Booking to display details page of a selected event
The link to display an event has this format;
domain.com/index.php?option=com_eventboo...t&id=ID_OF_THE_EVENT
Please try that to see whether it works
Tuan
The link to display an event has this format;
domain.com/index.php?option=com_eventboo...t&id=ID_OF_THE_EVENT
Please try that to see whether it works
Tuan
Please Log in or Create an account to join the conversation.
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
6 years 4 months ago - 6 years 4 months ago #120244
by Gareth Jones
Replied by Gareth Jones on topic Link to event or events by id?
Sorry, just realised I've been unclear.
That links to the details page of an event, which I now realise fulfils what I'd asked for, however, I'd like to link directly to the registration form of an event by it's id, which is what my link does.
I've found their menu id, which is 725, but swapping 204 for 725 in my link and an active event id, just redirects me to domain.com/component/eventbooking/?Itemid=0
Thanks
That links to the details page of an event, which I now realise fulfils what I'd asked for, however, I'd like to link directly to the registration form of an event by it's id, which is what my link does.
I've found their menu id, which is 725, but swapping 204 for 725 in my link and an active event id, just redirects me to domain.com/component/eventbooking/?Itemid=0
Thanks
Last edit: 6 years 4 months ago by Gareth Jones.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 4 months ago #120245
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Link to event or events by id?
I don't know about the old version you are using. In latest version, it should be index.php?option=com_eventbooking&task=register.individual_registration&event_id=38&Itemid=204
Of course 38 needs to be replaced with ID of the event
Tuan
Of course 38 needs to be replaced with ID of the event
Tuan
Please Log in or Create an account to join the conversation.
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
6 years 4 months ago - 6 years 4 months ago #120247
by Gareth Jones
Replied by Gareth Jones on topic Link to event or events by id?
Fantastic, that's worked perfectly, thanks!
I've used: index.php?option=com_eventbooking&task=register.individual_registration&event_id=38&Itemid=725 which is for version 2.1.1
On my version 1.7.1, the link format from the my first post works.
For "Itemid" it needs the id of the menu item that links to Event Booking's event list.
Main reason for writing this is in case anyone in future tries to do similar and finds this post.
Thanks again and keep up the great work.
I've used: index.php?option=com_eventbooking&task=register.individual_registration&event_id=38&Itemid=725 which is for version 2.1.1
On my version 1.7.1, the link format from the my first post works.
For "Itemid" it needs the id of the menu item that links to Event Booking's event list.
Main reason for writing this is in case anyone in future tries to do similar and finds this post.
Thanks again and keep up the great work.
Last edit: 6 years 4 months ago by Gareth Jones.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 4 months ago #120248
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Link to event or events by id?
That's great. Thanks for sharing your experience here. Actually, there is a simpler way
You can create a menu item to display events list (could be hidden menu item), then access to that menu item and copy the registration links from there
Seem simpler to me
Tuan
You can create a menu item to display events list (could be hidden menu item), then access to that menu item and copy the registration links from there
Seem simpler to me
Tuan
Please Log in or Create an account to join the conversation.
- Gareth Jones
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
6 years 4 months ago #120339
by Gareth Jones
Replied by Gareth Jones on topic Link to event or events by id?
I'm not sure that's much more different than what I have, really. I have a page on the website with a full list of events, ItemId=204. However, copying the links wouldn't really be an option as I want it completely hands off.
On the homepage currently, I have a tabbed next event module that shows upcoming events. It's a dynamic next events module (using Jumi) that queries the database.
What it does is it pulls data from the database as below:
Then displays the data showing upcoming events, each with their own registration button, the link of which is created thus:
I know you don't need to know all this, but I thought it might let you understand what we've done (along with countless other mods).
Thanks
On the homepage currently, I have a tabbed next event module that shows upcoming events. It's a dynamic next events module (using Jumi) that queries the database.
What it does is it pulls data from the database as below:
Code:
#__eb_events.id as id, remind_before_x_days, title, event_date, event_end_date, short_description, cut_off_date, event_password, thumb, address, city, state, zip, custom_fields FROM #__eb_events, #__eb_locations, #__eb_event_categories WHERE event_end_date >= date_sub(now(), interval 1 day) AND location_id=#__eb_locations.id AND #__eb_events.published=1 AND #__eb_event_categories.category_id=13 AND #__eb_events.id=#__eb_event_categories.event_id ORDER BY event_date LIMIT 0,6
Then displays the data showing upcoming events, each with their own registration button, the link of which is created thus:
Code:
echo "/index.php?option=com_eventbooking&task=individual_registration&event_id=" . $id . "&Itemid=204";
I know you don't need to know all this, but I thought it might let you understand what we've done (along with countless other mods).
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 4 months ago #120350
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Link to event or events by id?
Ah, OK. That makes sense. Do you have it works as expected now?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.