Friday, 17 November 2017
  7 Replies
  1K Visits
0
Votes
Undo
I want to make a few changes to the calendar_cell.php file.

But, I'm unable to make use of template override. I've tried copying the file (calendar_cell.php) from:

/components/com_jevents/views/default/month/tmpl
- - - >
/(my_template)/html/com_jevents/geraint/month

But only breaking the entire website... :( I must be missing something?

Thanks!
7 years ago
·
#195444
Accepted Answer
0
Votes
Undo
Hello,

Above you said:

What should the directory be for template override of file calendar_cell.php? (/(my_template)/html/com_jevents/geraint/month doesn't work.)


Hence my refencer to the Geraint.

So instead copy the default caldendar_cell file to the default directory within the template and then make the classing simliar and use:

class OverrideEventCalendarCell_default extends EventCalendarCell_default{

I think that should work, although no one has ever overrode this file since all changes can be done with the custom layout editor and some basic CSS.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

7 years ago
·
#195466
0
Votes
Undo
I hear what you saying; the only reasons why I wanted to edit the calendar_cell.php file is 1.) to remove the date tooltip Go to calendar - current day, and 2.) add an event title tooltip, cause when I use the custom layout editor my event border breaks (this remains a mystery since I'm 100% sure I'm doing it correctly).

But, I'm not getting the "override" to work (I assume I'm doing it wrong). That said, I accept the layout as is. This remains a fantastic extension! Thanks again Tony!
7 years ago
·
#195444
Accepted Answer
0
Votes
Undo
Hello,

Above you said:

What should the directory be for template override of file calendar_cell.php? (/(my_template)/html/com_jevents/geraint/month doesn't work.)


Hence my refencer to the Geraint.

So instead copy the default caldendar_cell file to the default directory within the template and then make the classing simliar and use:

class OverrideEventCalendarCell_default extends EventCalendarCell_default{

I think that should work, although no one has ever overrode this file since all changes can be done with the custom layout editor and some basic CSS.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

7 years ago
·
#195423
0
Votes
Undo
Ah, I see yes. But, sadly your advice just confuse me more. The changes you're referring to is in: /com_jevents/views/geraint/month/tmpl. I want to edit the file in: /com_jevents/views/default/month/tmpl
7 years ago
·
#195417
0
Votes
Undo
Hello,

It wouldn't work like that given it is a class call.

Try changing:

class EventCalendarCell_geraint extends EventCalendarCell_default{

to

class OverrideEventCalendarCell_geraint extends EventCalendarCell_default{

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

7 years ago
·
#195413
0
Votes
Undo
Anyone?

What should the directory be for template override of file calendar_cell.php? (/(my_template)/html/com_jevents/geraint/month doesn't work.)

Thanks,
Andries
7 years ago
·
#195402
0
Votes
Undo
I've tried, but for some reason it breaks the borders (left/bottom) of the event, and adding a black border to the top/right of the event.

1. I want to add a tooltip with title of event when hovering the event
2. I want to remove the tooltip "Go to calendar - current day" when hovering the date
7 years ago
·
#195398
0
Votes
Undo
Hello,

What are you trying to change exactly? You can customise this output with: JEvents -> Custom Layouts -> Monthly Calendar Cell

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.