Spry Menus
22 posts by 3 authors in: Forums > CMS Builder
Last Post: May 9, 2011 (RSS)
By dccreatives - April 28, 2011 - edited: April 28, 2011
On this page,
http://axislighting.com/CMS/downloadsList-spec.php?brand=Dia
I would like to have each panel be in the Collapsable panels. How do I make it loop. ON the bottom of the page, there is a script:
<script type="text/javascript">
<!--
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
//-->
</script>
I need it to figure out how to increase with as many results as there are.
The first panel works nicely.
Thank You.
Re: [dccreatives] Spry Menus
By Damon - April 28, 2011
So it looks like you need the tabindex number to increase.
One way to do this is to setup and use a counter.
Here is a basic counter code example
<?php $counter = 0; ?>
<?php foreach ($nameHereRecords as $record): ?>
<?php echo $counter; // output counter number and any other content here ?><br />
<?php $counter++ //to increase the counter number ?>
<?php endforeach ?>
This would output:
1
2
3
4
etc
Can you apply this method to the collapsible panels?
Let me know.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Spry Menus
By dccreatives - May 2, 2011
You can view the page live here:
http://axislighting.com/CMS/downloadsList-spec.php?brand=Dia
Please advise.
Re: [dccreatives] Spry Menus
By Damon - May 2, 2011
I looked at the attached code and the live page.
Couple of things in your code:
- missing a closing </div>
- not echoing out counter for your tabindex number
Can you create a separate hard coded working example of the Spry Menus working with the same content?
Then it is easy to compare the source of the working example to the output source of the live page to see which isn't the same.
Let me know.
Thanks!
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Spry Menus
By dccreatives - May 2, 2011
http://axislighting.com/CMS/downloadsList-spec2.php?brand=Dia
Please advise how I can make it loop properly.
Re: [dccreatives] Spry Menus
By gkornbluth - May 3, 2011
Interesting application.
I don't know this widget, but I agree with Damon,
Can you mock up a 2 or 3 menu hard coded HTML sample of a working page? (maybe 3 sample links in each)
Then it should be much easier to help you port it over to CMSB.
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Spry Menus
By dccreatives - May 3, 2011 - edited: May 3, 2011
You can see a working copy online at
http://axislighting.com/CMS/spry-test.html
Re: [dccreatives] Spry Menus
By gkornbluth - May 3, 2011
I got the page up and running.
One more request:
Could you post the brands.ini.php and the downloads.ini.php files from your data/schema folder
Also, what are you using the info1 fields for in brand_logo and specification_sheets?
Thanks,
Jerry
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Spry Menus
By dccreatives - May 3, 2011
Please advise.
Re: [dccreatives] Spry Menus
By gkornbluth - May 3, 2011
I got the sample HTML page up.
It will be much easier for me to re-create your CMSB situation if you post the 2 ini.php files above, and let me know about the info1 fields.
Jerry
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php