Need Date of Event to be added to the Event Title — (Ready to Override...)

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 10 months ago #144675 by Patrick Toulze
I will create all my events as Parents/childs Events.
I need the dates of the events to be added to their Title, (if not all childs events have the same name (really confusing for visitors)

• On my test site you can see the Upcoming Events (One Parent - All Childs) wit all the same name (only one is different, I manually change it)
www.graf-test.ca/astroid/index.php/fr/ef...s-cours-efoil-takuma


• Same on the Detail view, no way for users to rapidly understand they are in the right date
www.graf-test.ca/astroid/index.php/fr/ef...ls-takuma-16-june-21

My Live test Site
 

My local server site with a first override trial
 

My first shot to make an override, work on the Detail View, but it need to be part of the title when creating the childs events to appear correctly in ALL EB Views and the breadcrumbs.
 

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

More
3 years 10 months ago #144689 by Tuan Pham Ngoc
For this, unfortunately, there is no simple way to override. You might need help of a developer to:

- Develop a plugin to add event date to event title and event alias automatically on save
- Or customize code to append event date to event title and event alias automatically before it is displayed (there are several places, depend on what pages event are being displayed)

This is not something quick and easy, so you will need help from a developer.

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

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 10 months ago #144706 by Patrick Toulze
Thanks, I understand.

• I see that when you create child events your system add automatically the date to the each child element alias.

Can you point to me where that process take place in your code? —  Maybe I can use this to do the same for the title.... At least, it will give me idea how to do it.

If I want to develop plugin for your EB, do you have some documentation on how to do that ?

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

More
3 years 10 months ago #144727 by Tuan Pham Ngoc
Hello

Assume that you are using additional dates plugin to add parent/children events, the file you need to edit is plugins/eventbooking/dates/dates.php

Modification would be done within this block of code:
Code:
if (!$rowEvent->id) { $rowEvent->alias = JApplicationHelper::stringURLSafe($rowEvent->title . '-' . JHtml::_('date', $rowEvent->event_date, $config->date_format, null)); $rowEvent->hits = 0; }

But you would need some programming skill to do the modification.

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

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 10 months ago #144923 by Patrick Toulze
Thanks Tuan for the tip, I will work on it and come back here.

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

More
3 years 10 months ago #144926 by Tuan Pham Ngoc
OK Patrick. Hope you will be able to get it works in the way you want

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc