- Posts: 6
- Thank you received: 0
Customise Course Detail Boxes
- Dave Carr
- Topic Author
- Offline
- New Member
-
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
1. For displaying the time, maybe you should go to Events Booking -> Configuration, look at Themes tab, find the config option Event Date Format, add time parameters to that config option to show it's time? That would be easier. For list of supported parameters you can use, please see php.net/manual/en/function.date.php
2. If you want to add manual price entry, I think you can use this solution eventbookingdoc.joomservices.com/basic-s.../event-custom-fields
Tuan
Please Log in or Create an account to join the conversation.
- Dave Carr
- Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
Thank you for coming back so quickly. I've sorted the time, thank you.
How would I add the custom field to the box above please?
Thanks
Dave
Please Log in or Create an account to join the conversation.
- Stefan Schoch
- Offline
- Senior Member
-
- Posts: 55
- Thank you received: 0
simply follow the instructions about adding 'custom fields' via field.xml. That works easily and let's you show additional fields in both the details-table and each event-page:
integralzen.de/integral-zen-workshops.html
My question for Tuan would be: how can I have only some og the additional fields be shown in the details-view?
For example the 'Zeiten' and 'Veranstaltungsort' fields shall only be displaed in the full event page, not in the details view.
How can I achieve that?
Thx,
Stefan
Please Log in or Create an account to join the conversation.
- Dave Carr
- Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
Many thanks for your help.
Kind Regards
Dave
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
Stefan wrote: how can I have only some og the additional fields be shown in the details-view?
For example the 'Zeiten' and 'Veranstaltungsort' fields shall only be displaed in the full event page, not in the details view.
How can I achieve that?
Two ways:
1: You would have to edit code to do it properly...
Look at /components/com_eventbooking/views/common/tmpl/events_default.php
You will find several sets of <tr class="eb-event-property"> ... </tr> . Look for the <tr ... /tr> block that contains the JText::_('...') that you want to remove (eg. Location would be JText::_('EB_LOCATION') ). You can either delete the entire <tr ... /tr> block, or comment it out. Save your file to \templates\YOUR-TEMPLATE\html\com_eventbooking\common\tmpl\event_default.php so that you don't have to make the change every time you upgrade EB. You might have to make the change again starting with the original file if Tuan adds new features to EB and you don't see them showing up on your site
2: Or you could use CSS to accomplish this without editing EB's source code...
You could try something like the following added to /media/com_eventbooking/assets/css/custom.css:
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.
- Stefan Schoch
- Offline
- Senior Member
-
- Posts: 55
- Thank you received: 0
thx for the hints!
I'd shurely go for the 2nd one, changing the EB code is not a goof option I think.
But I don't really get what the lines you suggested mean. Does this decide, which line-number is displaed? Would the above example man that line 3 ist displayed and line 6 not?
What about the other lines?
Stefan
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
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.
- Stefan Schoch
- Offline
- Senior Member
-
- Posts: 55
- Thank you received: 0
Just two minor problems:
1. it doesn't work at all
I inserted the lines into the file (which was already there for other purposes) but nothing happens.
Any idea?
2. if it would work:
I don't have the same numbers of rows in the table in different events (sometimes thre is no such field as 'Zeiten').
Is there another optoion to addresse the rows I want to hide?
Stefan
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
I can make the modification to forward you the file... what fields are you trying to disable?
'Zeiten' = ????
'Veranstaltungsort' = Venue or location???
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.
Support
Documentation
Information
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.