• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Possible to indicate current day in calendars?

Possible to indicate current day in calendars? 9 years 3 months ago #34014

  • EnjoyRC
  • EnjoyRC's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
I'd like to indicate the current day in the full calendar view. Is it possible to shade the whole day square, or some other indicator?
The administrator has disabled public write access.

Possible to indicate current day in calendars? 9 years 3 months ago #34017

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can try similar steps:

- perform a template override.

- the file in question is located under this path:

\components\com_rseventspro\views\calendar\tmpl\default.php

- open the duplicate used for template overrides and search for (around line 163):
<td class="<?php echo $day->class; ?>">

- you can replace the above line with:
<?php
	if($unixdate->format('m-d-Y') == date('m-d-Y')){
		$todayStyle = 'style="border: 2px solid red;"';
	}else{
		$todayStyle = '';
	}
?>
		<td class="<?php echo $day->class; ?>" <?php echo $todayStyle; ?>>

This will basically add a red border on the container of the current day (you can also try adding your own CSS class, that you can further use to add style declarations).
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: EnjoyRC

Possible to indicate current day in calendars? 9 years 3 months ago #34022

  • EnjoyRC
  • EnjoyRC's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Exactly what I was looking for. Thank you SO much!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!