• 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: print calendar

print calendar 10 years 7 months ago #28784

  • info2649
  • info2649's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hello how to put a button to print the calendar view?
The administrator has disabled public write access.

print calendar 10 years 7 months ago #28789

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Your scenario can be achieved by creating a template override on the calendar default view and insert a Print button that will trigger a print script.

Please keep in mind that this is an example and not a solution.
The file you have to copy and edit is this one:

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

at line 156 insert the following:
<button onclick="printS();">Print</button>
<script>
function printS()
{
child = window.open(window.location+'&tmpl=component', 'popupname','width=800, height=600');
child.setTimeout("window.print()",3000);
}
</script>

Instructions on how to create a template override can be found here:
http://www.rsjoomla.com/support/documentation/view-article/692-adjusting-the-components-look-and-feel.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

print calendar 9 years 2 months ago #34188

I'm using 1.9.11, line 156 doesn't seem like the correct line anymore, what's the new line number? Maybe I should back up and ask if this is the best way to add a print calendar button?
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!