Override possible for Speaker Plugin

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 3 months ago #121235 by Patrick
Override possible for Speaker Plugin was created by Patrick
Hi

I use the speaker Plugin. There I have a field called "Description". Now I want to use this field but in Frontend not display the information entered there.
Reason: I use another Tool to get this information from database and I display it for a special user group only.

I could edit the speakers.php, removing this code:
Code:
<p class="eb-speaker-description"> <?php echo $speaker->description; ?> </p>

But on an update of EB it will get lost.
Is it possible to do with an Override or a Copy of the file?

It would be great if assigning access level to this field is possible :)

Thanks!

Regards
Patrick

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

More
6 years 3 months ago #121236 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override possible for Speaker Plugin
Hi Patrick

Update your site to latest version of Events Booking, then you can override the output. On latest version, the layout file is located at components/com_eventbooking/themes\default\plugins/speakers.php

As any other layout files, I can be overridden using template override

Tuan

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 3 months ago #121238 by Patrick
Replied by Patrick on topic Override possible for Speaker Plugin
Hi Tuan and thanks

I did try but in Templates > Overrides the Themes folder is not available(?)

Thanks.

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

More
6 years 3 months ago #121239 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override possible for Speaker Plugin
We use different structure compare Joomla! core, so Templates Overrides tool did not work

You will have to copy file manually via FTP to PATH_TO_TEMPLATE/html/com_eventbooking/plugins folder manually

Regards,

Tuan
The following user(s) said Thank You: Patrick

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 3 months ago #121240 by Patrick
Replied by Patrick on topic Override possible for Speaker Plugin
Hi Tuan

Works 100% perfect!

Thanks a lot!

Regards
Patrick

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

More
6 years 3 months ago #121241 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override possible for Speaker Plugin
Great, thanks for confirming

Tuan

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

More
3 years 9 months ago #145374 by Digigreg
Replied by Digigreg on topic Override possible for Speaker Plugin
Hi Tuan, is it possible to do something similar with "dates plugin" The one used to add additional dates to an event. I need to override the file "dates.php" in the main folder of the plugin, but I don't find the way.
Thanks

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

More
3 years 9 months ago #145389 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override possible for Speaker Plugin
Hi Digigreg

Exactly what you want to change? Please let us know so that we can understand and see if we can come up with an option

Tuan

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

More
3 years 9 months ago #145390 by Digigreg
Replied by Digigreg on topic Override possible for Speaker Plugin
Hi Tuan,
I wanted to change some behaviour of the plugin, in this case the way it rename the children events (like it does with aliases).

So, to avoid problems to update the component, I copied the plugin, assigning it another name "datesmod" and then I've done my modifications.

In case you will make it overraidable somehow, i will bring back the modifications on the override file of original plugin.

Thanks for the support.
Kind regards,
Gregorio

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

More
3 years 9 months ago #145399 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override possible for Speaker Plugin
If the modification is for layout, I could make it overridable. But for changing the logic like that, creating and using a new plugin as you did is the right approach

Tuan

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

Moderators: Tuan Pham Ngoc