Event Details (How to hide certain parts?)

  • Francis Comtois
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #89584 by Francis Comtois
Event Details (How to hide certain parts?) was created by Francis Comtois
Dear All,

I would like to know if it is possible to hide certain information from the event details table (e.g. Cut off date). If it is possible, I would be grateful if I could please be told how to do so. Thanks.

Thanks.

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

More
8 years 8 months ago #89589 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Details (How to hide certain parts?)
Hi

1=> For cut off date, if you enter it, it will be showed. If you want to remove it, code modification will be needed. You can submit a support ticket and we can help you to do that

2=> For other fields, you can try to look at Events Booking -> Configuration, look at Themes tab, there are some config options to allow turn on/ turn off fields

Tuan

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

More
8 years 8 months ago - 8 years 5 months ago #89616 by James Riley
Replied by James Riley on topic Event Details (How to hide certain parts?)
Funny,,,, I just added CSS classes to the Event Properties table so that I could do exactly this on my site! I am able to turn off/on Event Properties lines either globally (or by event, when coupled with my previous addition of unique event-specific classes to each event).

The file you need for "global" control is attached (individual event control requires several more files to be modified however...). Unzip, replace (or set up a template override) /components/com_eventbooking/view/common/tmpl/event_properties.php, and then use [EventBooking -> Configuration -> Custom CSS tab] (or edit /media/com_eventbooking/assets/css/custom.css directly) to control the classes applied to the <tr> elements. My changes are all annotated within the file with a "JAMES ADDED" tag.

For your cut-off-date example , you would just need to add the CSS:
Code:
tr.eb-cut-off-date {display:none;}

Here is a list of the CSS-addressable ids/classes that I added. (I realize that visibility for some of these lines are controlled via Configuration, but this gives me the flexibility to leave the global toggle turned ON while being able to disable selectively by event on my site.)
  • #eb-event-properties-table <-- (ID for the whole property table)
  • [strike]tr.eb-eventproperties-event_date[/strike] <-- updated to match updated attachment
  • tr.eb-eventproperties-event-date
  • tr.eb-event-end-date
  • tr.eb-registation-start-date
  • tr.eb-capacity
  • tr.eb-registered
  • tr.eb-available-place
  • tr.eb-cut-off-date
  • tr.eb-original-price
  • tr.eb-discounted-price
  • tr.eb-individual-price
  • tr.eb-fixed-group-price
  • tr.eb-late-fee
  • tr.eb-created-by
  • tr[class^="eb-paramData-"]
  • tr.eb-location
  • tr.eb-attachments

If you want to add control for individual events, I can post the modified PHP files for this as well (or instruction on what to edit as I likely have other additional edits contained in those files).

@Tuan -- would this be useful if added to core? I've seen this request come up a number of times and adding a line of custom CSS is far easier than mod'ing and maintaining code changes. If you'd like, I can make a pull request on GitHub with the required changes for your consideration.

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 :.
Attachments:
Last edit: 8 years 5 months ago by James Riley. Reason: added mention of the Custom CSS tab

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

More
8 years 8 months ago #89642 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Details (How to hide certain parts?)
Thanks James. For now, I don't have time to look at this part yet. Next thing I want to focus working on is generate tickets PDF for registration

For frontend items like this, I will leave it to later (maybe after 2.12.0 release)

Regards,

Tuan

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

More
8 years 5 months ago #93674 by Siterelish
Replied by Siterelish on topic Event Details (How to hide certain parts?)
Worked awesome James! Thanks for this workaround :)

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

Moderators: Tuan Pham Ngoc