Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

build_default_tpl dropdown menu on templates

Quote Reply
build_default_tpl dropdown menu on templates
I am trying to duplicate the build_default_tpl dropdown menu and have the
action simply 'refresh' the page I am on with t=template added to the url.

I would prefer the 'switch' to take place when the menu is released
without having to hit a submit button.

I have a dropdown menu of template sets displaying properly, but
when I hit the "go" button. It lands me on the appropriate admin page
with a message stating that the the change was successful. And it was! <g>
It switched the default template set as expected, but I want to just 'refresh'
the page I am on and switch templates.

Code:
<form method="post" action="admin/setup.cgi">
<input type="hidden" name="do" value="setup_build" />
<%Links::Tools::tpl_dir_select($cfg_build_default_tpl, '(?:browser|admin)', '', 1)%>
<select name="build_default_tpl"><%loop template_set_loop%><option<%if directory = config.build_default_tpl%> selected<%endif%>><%directory%></option><%endloop%></select>

<div class="submit">
<input type="submit" value="Go" />
</div>

</form>


I think this will require a javascript onmenu or something like that.
Also that the menu will have to have the urls added to it?
If someone could walk me through creating a menu whose action
happens when the menu is released. I would appriciate it.

Thanks,
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com

Last edited by:

rgbworld: Apr 23, 2006, 2:56 PM
Subject Author Views Date
Thread build_default_tpl dropdown menu on templates rgbworld 3136 Apr 23, 2006, 2:54 PM
Thread Re: [rgbworld] build_default_tpl dropdown menu on templates
rgbworld 3054 Apr 23, 2006, 5:50 PM
Thread Re: [rgbworld] build_default_tpl dropdown menu on templates
brewt 3051 Apr 23, 2006, 6:26 PM
Thread Re: [brewt] build_default_tpl dropdown menu on templates
rgbworld 3080 Apr 23, 2006, 7:42 PM
Post Re: [rgbworld] build_default_tpl dropdown menu on templates
rgbworld 3044 Apr 23, 2006, 10:58 PM