SOLVED: How can I remove or change the small icon in the Calendar View?

  • Stephan Hodges
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #107729 by Stephan Hodges
I would like to know how to remove or change to my own icon on the individual calendar entry.

Attachment not found

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

More
8 years 3 months ago #107734 by Tuan Pham Ngoc
Hello

You will need to modify code if you want to remove the icon. Look at the file components/com_eventbooking/view/common/tmpl/calendar.php, find this line of code and remove it
Code:
<img border="0" align="top" title="<?php echo $event->title; ?>" src="<?php echo $thumbSource; ?>" />

Regards,

Tuan

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

  • Stephan Hodges
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #107737 by Stephan Hodges
I would have to change this after each release, correct?

Would it be easier to just rename/remove the small (16x16) "calendar_event.png" file from asset\images?

Please consider adding a feature to change this in the settings in a future release. Then, I could either change to "empty" or something else.

Also, I would like to ask for a feature to change the icon PER category, in the same way that we can change the background colors per category.

Thanks for the code suggestion.

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

More
8 years 3 months ago #107738 by Tuan Pham Ngoc
You can move the file to PATH_TO_TEMPLATE/html/com_eventbooking/common folder and it won't be lost when you update to future releases of the extension

Regards,

Tuan

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

  • Stephan Hodges
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #107749 by Stephan Hodges
Thanks, that works great!

Although I understand what overrides are in Joomla, I can never get the actual paths right in the 'html' folder - haha.

Hope you can add this as a feature in the future. Looks like it would be easy to modify that code to get the image from the category definition.

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

More
8 years 3 months ago #107758 by Tuan Pham Ngoc
That would end up in too many config options to the extension. I will leave your requests open here, if there are more customers requesting for it, I will add support for it in future releases of the extension

Regards,

Tuan

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

More
7 years 1 month ago #122636 by LMKweb
I would like the option to remove the icon built-in to the config options, rather than via an override. I'll use the code here to create one though, but just want to add another voice to the discussion!

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

More
7 years 1 month ago #122638 by Tuan Pham Ngoc
Okay. I will add a new parameter to the menu item to allow controlling it. I will update you when it's implemented so that you can update and use it (maybe we will have it today)

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

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

More
7 years 1 month ago #122647 by LMKweb
Thank you! Also want to add for anyone else that might read this - I found an easier way to remove the icon by using CSS:
Code:
.regpro-calendarDay .eb_event_link img { display: none; }

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

More
7 years 1 month ago #122648 by Tuan Pham Ngoc
Yes. That could be a workaround.

Tuan

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

Moderators: Tuan Pham Ngoc