By FishEagle on Friday, 17 November 2017
Replies 7
Likes 0
Views 1.1K
Votes 0
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!
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
·
Monday, 20 November 2017 09:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

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

Many thanks
Tony
·
Friday, 17 November 2017 11:00
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Friday, 17 November 2017 11:24
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Friday, 17 November 2017 16:39
·
0 Likes
·
0 Votes
·
0 Comments
·
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{
·
Friday, 17 November 2017 21:41
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Saturday, 18 November 2017 05:33
·
0 Likes
·
0 Votes
·
0 Comments
·
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!
·
Tuesday, 21 November 2017 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post