I would like to add more that 10 Accordion Panels on the page, is this possible?
Note: This feature is built into Accordion Panel Magic 2
Yes, you can add more than 10 Accordion Panel Magic (APM) components on the same page, here's how:
1. Add the necessary Accordion Panel references to the grouped style selector rules as outlined in the User Guide, page 24.
2. We'll need to tweak the scripts file. Open the p7APscripts.js file and locate the 2nd line in the P7_initAB() function, around line 74, and the beginning of the line looks like this:
2. Change the number 10 to a higher value, for example, if you want to support up to 20 panels then replace the 10 with 20, like this:
use 30, 40, 50, whatever you need :-)
3. Next, you'll need to make a small change to the first line of the P7_ABtrig(a) function, it's around line 211, and look like this:
4. Change the last part of the line from this:
5. Save the file