PDA

View Full Version : Accordion Menu - dynamic pages?



somanyqs
02-16-2009, 02:25 AM
1) Script Title: Glossy Accordion Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem:
Ok, no laughing!! :D
I'm just getting started and have been doing my search but haven't really found the fix. On the Glossy Accordion Menu page I see the example with the 6 menu headers, and the headers are static.
What I'm wondering is, if I would like to use this menu but with dynamic headers, can I simply substitute something like (I would be using this with Wordpress):
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>

for all of the static pages in the example, like:
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C1/">Horizontal CSS Menus</a></li>

I'm sure this is absurdly basic, but I'm learning as I go...and haven't figured out quite how to get this working yet. I've added the script in the header and also the necessary sections to the my CSS style sheet...hmm.
Will keep trying, though!!! Thx~

ddadmin
02-16-2009, 04:56 AM
In general, the checklist for using any server side language to dynamically output client side JavaScripts is the same. As long as what gets output to the browser looks identical to as if you've manually included the script (in this case Accordion Menu) on your page, it should work. While trying to get the output to work, use the browser's view source feature often to check that the code that's being output comes closer and closer to how it should look.