kouri
Junior Member
Posts: 6
Registered: 12/3/2003
Member Is Offline
|
| posted on 12/3/2003 at 03:06 PM |
|
|
dynamic URL
MY URL wait for an id that is provided by a PHP variable..Is it possible to enter a PHP sequence as URL in menu_items.js file?
Thx for your answer and your product !
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 12/13/2003 at 03:25 AM |
|
|
Yes, sure.
Below are the ways to generate menu structure dynamically by server side script:
1. rename menu_items.js into menu_item.php (don't forget to update the link to the file in the code of the page). Then you put inside
menu_items.php the code which produces the text of that configuration file just the way you usually generate HTML with server side scripts. Also check
if this file is in the directory where server executes the scripts.
2. unlink menu_item.js and generate items variable inside the <script> block before menu initialization together with other client side code.
This assumes that your page itself is dynamic.
Currently Tigra Menu GOLD and Tigra Tree Menu PRO are supplied with PHP and ASP samples of dynamic menu structure generation from database and file
system.
|
|
|