- Posts: 102
- Thank you received: 3
Please post all pre-sales questions of all products on this forum
Event not available in custom fields
- temills
- Topic Author
- Offline
- Premium Member
Less
More
10 years 1 month ago #42743
by temills
Event not available in custom fields was created by temills
When building an event registration, the event is not available in the "event" listing when adding a custom field unless the event is published. With the event published, it is available on the frontend before I can began adding custom fields to the registration form. Is there a workaroung?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 1 month ago #42744
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event not available in custom fields
Hi Tem
You will need to edit the code alitle. Please follow the instruction below :
1. Open the file components/com_eventbooking/views/field/view.html.php
2. Find the code below :
3. Change it to :
Regards,
Tuan
You will need to edit the code alitle. Please follow the instruction below :
1. Open the file components/com_eventbooking/views/field/view.html.php
2. Find the code below :
Code:
$query->select('id, title, event_date')
->from('#__eb_events')
->where('published=1')
->order('title, ordering');
3. Change it to :
Code:
$query->select('id, title, event_date')
->from('#__eb_events')
->order('title, ordering');
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- temills
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
- Thank you received: 3
10 years 1 month ago #42754
by temills
Replied by temills on topic Event not available in custom fields
Thanks, Tuan, but there is no folder "field" in the views folder
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 1 month ago #42755
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event not available in custom fields
Sorry. The correct folder is administrator/components/com_eventbooking/views/field/view.html.php
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- temills
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
- Thank you received: 3
10 years 1 month ago #42760
by temills
Replied by temills on topic Event not available in custom fields
Thanks, Tuan, that did it. Perhaps events should not be automatically published when a new event is added.
Thanks again,
Tem
Thanks again,
Tem
Please Log in or Create an account to join the conversation.
- temills
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
- Thank you received: 3
10 years 1 month ago #42761
by temills
Replied by temills on topic Event not available in custom fields
Upgraded to 1.6.3 and see auto publish was changed. Thanks.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 1 month ago #42762
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event not available in custom fields
Infact, in 1.6.3, we have few config options allow you to change default status when creating events like Publish, Access, Registration Type....
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2024 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.