Please post all pre-sales questions of all products on this forum

Event not available in custom fields

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
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.

More
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 :
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
  • Premium Member
More
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.

More
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

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
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

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

  • temills
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
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.

More
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

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam