|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sammy Smarty n00b
Joined: 21 Apr 2003 Posts: 1 Location: Australia
|
Posted: Wed Jun 04, 2003 3:27 am Post subject: HTML_options and Multi dimensional Arrays |
|
|
Hi,
I have a quick question
I have an 2 dimensional array that looks like this
Array ( [20] => Array ( [0] => 1 [1] => 2 [2] => 3 ) [5] => Array ( [0] => 0 ) [1] => 1 ))
In my template I have constructed a foreach loop that cycles through each menu to display the menu name with submenus.
I want to use the select name to allow me to sequence all the submenu options for the current menu section. I have used the following html_options code without success. Anyone got any ideas how I can display each of the submenu sequences for each of the menus??
<select name="ov[<{$curmenu.id}>]"><{html_options values=$mnuseq[$curmenu.section] output=$mnuseq[$curmenu.section] selected=$curmenu.sequence}></select>
Cheers,
Sam. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|