- Posts: 42
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
Custom fields in short description table
- Sebastian Hoffmann
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 1 month ago #85208
by Sebastian Hoffmann
Custom fields in short description table was created by Sebastian Hoffmann
Hello,
is there a possibility to set custom fields in the category view?
I have to set an event typ which should be listed as the first entry in the table on the right side of every short description.
Additionally I need a field which holds the duration of an event (days) and an entry which shows a overview of all children-event dates.
Can you please help me with these improvements?
Best regards
S. Hoffmann
is there a possibility to set custom fields in the category view?
I have to set an event typ which should be listed as the first entry in the table on the right side of every short description.
Additionally I need a field which holds the duration of an event (days) and an entry which shows a overview of all children-event dates.
Can you please help me with these improvements?
Best regards
S. Hoffmann
Please Log in or Create an account to join the conversation.
- Sebastian Hoffmann
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
9 years 1 month ago - 9 years 1 month ago #85305
by Sebastian Hoffmann
Replied by Sebastian Hoffmann on topic Custom fields in short description table
Ok now a bit more specific: I tried to overwrite the events_default.php. My problem is that the event doesnt have any attributes referring his children. Can you please help me with this? How can I get the child events? I tried to use $event->getAllChildrenEvents(intval($event->id)) in events_default.php but that was probably the wrong way...
Best regards
S. Hoffmann
Best regards
S. Hoffmann
Last edit: 9 years 1 month ago by Sebastian Hoffmann.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 1 month ago #85341
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields in short description table
Hi
I think you can setup it using events custom field. Please see eventbookingdoc.joomservices.com/basic-s.../event-custom-fields
You can setup the custom fields, then add the information you want for the event. Also, please go to Events Booking -> Configuration, look at Themes tab, find the config option "Show event custom fields in category view" set it to Yes so that event custom fields will be showed on category list page
After that, it should work as expected
Tuan
I think you can setup it using events custom field. Please see eventbookingdoc.joomservices.com/basic-s.../event-custom-fields
You can setup the custom fields, then add the information you want for the event. Also, please go to Events Booking -> Configuration, look at Themes tab, find the config option "Show event custom fields in category view" set it to Yes so that event custom fields will be showed on category list page
After that, it should work as expected
Tuan
Please Log in or Create an account to join the conversation.
- Sebastian Hoffmann
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
9 years 1 month ago #85429
by Sebastian Hoffmann
Replied by Sebastian Hoffmann on topic Custom fields in short description table
Hi,
yes for the duration and the type this is true but for the dates of the child events I need a more practical solution. I want to display the dates in the category view without the need to paste them in the custom fields by hand. Do you have a tip for the overwrite?
Best regards
S. Hoffmann
yes for the duration and the type this is true but for the dates of the child events I need a more practical solution. I want to display the dates in the category view without the need to paste them in the custom fields by hand. Do you have a tip for the overwrite?
Best regards
S. Hoffmann
Please Log in or Create an account to join the conversation.
- Sebastian Hoffmann
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
9 years 1 month ago #85430
by Sebastian Hoffmann
Replied by Sebastian Hoffmann on topic Custom fields in short description table
I have managed to solve my problem in my overwrite. Thank you for your support.

Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 1 month ago #85489
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields in short description table
I'm glad to hear that. Did you write the code manually to get all children events? Or use existing code:
Tuan
Code:
EventbookingModelEvent::getAllChildrenEvents($event->id);
Tuan
Please Log in or Create an account to join the conversation.
- Sebastian Hoffmann
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
9 years 1 month ago - 9 years 1 month ago #85492
by Sebastian Hoffmann
Replied by Sebastian Hoffmann on topic Custom fields in short description table
Yes, you are right. My code is short and simple but it works for me:
Best regards
S. Hoffmann
Code:
$items = EventbookingModelEvent::getAllChildrenEvents($event->id);
foreach($items as $item){
if (strpos($item->event_date, '00:00:00') !== false){
$dateFormat = $config->date_format;
}
else{
$dateFormat = $config->event_date_format;
}
echo "<a href=".$detailUrl."#eb-event-info".">";
echo JHtml::_('date', $item->event_date, $dateFormat, null);
echo "</a>";
echo "<br>";
}
Best regards
S. Hoffmann
Last edit: 9 years 1 month ago by Sebastian Hoffmann.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Dang Thuc Dam
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.