-
1. Re: Want to get spry accordion panel to remain open while on a page in that section
Ben Pleysier Apr 17, 2013 5:51 PM (in response to port4u)Does this http://backyardfurniture.com.au/ help you? The menu on the left has been constructed using the SpryAccordion. By viewing the source code you can see how it was done.
-
2. Re: Want to get spry accordion panel to remain open while on a page in that section
Sudarshan Thiagarajan Apr 17, 2013 10:34 PM (in response to port4u)To add to Ben's response, you can take a look at a list of possible Spry Accordion implementations here: http://adobe.github.io/Spry/samples/accordion/AccordionSample.html
On a sidenote, Spry has been deprecated and is no longer officially supported or actively developed by Adobe: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
While all implementations of Spry will continue to work normally, I'd definitely recommend that you look up some jQuery plug-ins that can do this for you - it is the way ahead the way I see it.
-
3. Re: Want to get spry accordion panel to remain open while on a page in that section
port4u Apr 19, 2013 9:41 AM (in response to Ben Pleysier)I looked over the java and css files for changes to the scripts and can't see how it was done. Both files look like mine. Thanks you for your reply. Novice.
-
4. Re: Want to get spry accordion panel to remain open while on a page in that section
Ben Pleysier Apr 19, 2013 9:47 AM (in response to port4u)If you supply a link to your site, I will give you a tailor made solution
-
5. Re: Want to get spry accordion panel to remain open while on a page in that section
port4u Apr 19, 2013 10:00 AM (in response to port4u)www.linnaeannewyork.org thanks a lot
-
6. Re: Want to get spry accordion panel to remain open while on a page in that section
port4u Apr 19, 2013 10:01 AM (in response to Sudarshan Thiagarajan)I am lost. thanks for trying to help.
-
7. Re: Want to get spry accordion panel to remain open while on a page in that section
Ben Pleysier Apr 19, 2013 10:15 AM (in response to port4u)In the documents (pages) near the bottom of the document you will see a line similar to
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: -1 });
For each document in the 'ABOUT LSNY - PUBLICATIONS' panel, change the value to 1
For each document in the 'MEMBERSHIP - CONTACT' panel, change the value to 2
And so forth for each panel
-
8. Re: Want to get spry accordion panel to remain open while on a page in that section
port4u Apr 19, 2013 3:30 PM (in response to Ben Pleysier)Instead of the panel in "About" remaining open it opens the next panel down and that remains open. I must be doing something wrong.
I found the problem. I have the first section twice so needed to put:
Home
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: -1 })
About pages
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: 0 })
Membership... pages
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: 1 })
Programs... pages
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: 2 })
etc.
Now the right sections remain open. thanks so much for the help.
-
9. Re: Want to get spry accordion panel to remain open while on a page in that section
Ben Pleysier Apr 19, 2013 4:03 PM (in response to port4u)Looks like you have fixed it.
-
10. Re: Want to get spry accordion panel to remain open while on a page in that section
Lorica Gardener Jul 2, 2013 5:14 AM (in response to Ben Pleysier)I have a similar question to port4u, but my pages are all based on a template with the Accordion in that template, as a non-editable region. Is there a way to keep the accordion panel open while on a page in that section in this case? If not, what is the easiest way to reconfigure the pages to allow for this functionality?
My site is currently being tested on another domain I use for my Mom's 'Mimi Camp' site. Hopefully she doesn't notice until I launch the site on the correct domain. http://mimicamp.org
Thanks!
--MK Toothman
-
11. Re: Want to get spry accordion panel to remain open while on a page in that section
Lorica Gardener Jul 2, 2013 5:16 AM (in response to Lorica Gardener)Forgot to mention - not all the pages are clickable yet. But if you look in the "About ASA" section, those pages are all functional.
-
12. Re: Want to get spry accordion panel to remain open while on a page in that section
Ben Pleysier Jul 2, 2013 6:08 AM (in response to Lorica Gardener)Place the constructor in an editable area and add de default panel for each page as in
<div id="bottomrow">
<!-- InstanceBeginEditable name="secondary_content" -->
*ASA is not an entity of the Catholic Diocese of Raleigh.
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 2 });
</script>
<!-- InstanceEndEditable -->
</div>
The example will open the third panel (About ASA)
-
13. Re: Want to get spry accordion panel to remain open while on a page in that section
port4u Jul 2, 2013 2:39 PM (in response to Lorica Gardener)Mine is in a template too. All you need is aan editable region for the script changes. See my site at www.sherryfelix.com
I made an editable region near the botoom of the html page:
<!-- TemplateBeginEditable name="spry" --><script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: -1 });
</script><!-- TemplateEndEditable --> </div>
Then you can name each section a number, the home page in the above instance is -1.
My portfolio menu section below is 0
<!-- InstanceBeginEditable name="spry" --><script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("acc1", { useFixedPanelHeights: false, defaultPanel: 0 });
</script><!-- InstanceEndEditable --> </div>
-
14. Re: Want to get spry accordion panel to remain open while on a page in that section
Lorica Gardener Jul 8, 2013 2:24 PM (in response to port4u)Sorry, I know this is a stupid question, but how do you name each section a number? You can see from my code that I tried to do it by changing the class "AccordionPanel" to a number "-1" through "5" for each of the panels. That doesn't seem to do anything. The accordion closes when I get to the History page (this is the only page I've tried fixing with the suggested code).
Every other page just defaults to the first panel being open.
Thanks for your help!
-
15. Re: Want to get spry accordion panel to remain open while on a page in that section
Lorica Gardener Jul 8, 2013 5:42 PM (in response to Lorica Gardener)Got it! I had forgotten to remove the default script from the uneditable region of the template. Working very nicely now! Thank you so much!



