Latest version
Make sure you have the latest stable version of each installed extension.
 
Commercial templates (Yootheme, RocketTheme, Artisteer etc.)
Please note that support for commercial templates is also commercial - for Membership Personal and Membership Full users.
We believe it is the necessary step to make our service even better.
 
Custom modification
In case you modify our extensions, you assume responsibility for the correct functionality and you haven't got right of support.
 
Live demo
Please supply a link to a live web page where I can see your entire environment.
 
Modern browsers
Please use a latest version of your browser.

 

Welcome, Guest
Please Login or Register.    Lost Password?

Open accordions when the "Print" button is clicked
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Open accordions when the "Print" button is clicked
#8893
Open accordions when the "Print" button is clicked 11 Months, 3 Weeks ago  
Hi!
First, thank you for your Plugin!

I have just a little question: I would like to open accordions when visitors click on the button "Print".
I know I can edit the file "templates/XXX/component.php" to control the print view.

Do you know what code to add to force all accordions to open?


Thany you very much for your help!

Vincent
i120
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#8903
Re:Open accordions when the "Print" button is clicked 11 Months, 3 Weeks ago  
Hi Vincent, first you have to set some fixed ID to your accordion, for example:
Code:

{accordion id="great"}

Then you should attach onclick event on the "Print" button. Example:
Code:

<button onclick="jQuery(function($) { $('#great').accordion('option', 'active', 0); }); ">Print</button>


Of course you should know something about JavaScript (jQuery) and HTML encoding to get the job done.

I hope it helps.

Bye.
daniel.rataj
Admin
Posts: 4162
graph
User Offline Click here to see the profile of this user
Gender: Male Core Design Location: Czech Republic
The administrator has disabled public write access.
Daniel Rataj
www.greatjoomla.com
 
Go to topPage: 1
Moderators: daniel.rataj