By Guest on Thursday, 18 October 2018
Replies 7
Likes 0
Views 1.1K
Votes 0
I am seeking a cleaner, simpler-looking calendar. I have attached an image to show what it looks like presently. I wish for the days to be abbreviated and for some of the cell contents to be removed, leaving only the name of the clinic. Is this possible? 2.jpg
Sorry you site was using div's so you needed calendar_bodydiv.php

I've applied that to your site using the alternative theme.

Many thanks
Tony
·
Tuesday, 23 October 2018 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

1. It should be, what JEvents Theme are you using?

2. Ok you can change this in the JEvents -> Custom Layouts -> Monthly Calendar Cell

Many thanks
Tony
·
Thursday, 18 October 2018 21:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Tony. Very helpful. Cell changes made. Using v 3.4.48 stable, theme:'alternative'. Now, how do I abbreviate the days of the week in the calendar?

John
·
Thursday, 18 October 2018 22:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok so day names is a little more complicated.

Copy:

/components/com_jevents/views/alternative/month/tmpl/calendar_body.php

to

/templates/your_template/html/com_jevents/alternative/month/calendar_body.php

and change:

echo $dayname;

to

echo substr($dayname,0,3);

Many thanks
Tony
·
Friday, 19 October 2018 08:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony, I don't have a com_jevents subfolder below my site template/html, but went ahead and created it together with its subfolders as in your response, making the alteration in calendar_body.php. Has not altered the day name, though.... Any ideas??
·
Friday, 19 October 2018 09:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You need to create any missing folders.

This should have made the change? Although I found a problem you need:


<div class="cal_div_daynames cal_div_daynames<?php echo $count; ?>" >
<span class="<?php echo $dayname;?>">
<?php echo substr(strip_tags($dayname), 0, 3); ?>
</span>
</div>


Many thanks
Tony
·
Friday, 19 October 2018 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
made the changes, but still no desired changes with the days of the week seen ....

I have made an observation, though. Irrespective whether I cange the theme calendar in the module or the config in the Jevents component, it does not change the calendar theme on hte webpage at all.

Therefore, because I do not know which theme is showing, I have created several subfolders under my template/html/com_jevents, as shown in the image 4.jpg
. Each has the correctly (!) altered calendar_body.php file

This is the theme i have installed on the website, and which I cannot alter at all! 3.jpg

I am attaching my site details, since this is beyond my abilities...And thank you for your quick responses and patience.
·
Friday, 19 October 2018 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post