On Mon, Dec 01, 2003 at 04:07:50PM -0800, David Fishburn wrote:
> >
> > Is "SELECT_BY_META" defined some place?
>
> Yes, this is defined in my .swishcgi.conf
It doesn't work that way, sorry. Template-Toolkit makes it somewhat
easier, but with HTML::Template there's a module that swish.cgi uses to
load up a hash with data for the template: TemplateHTMLTemplate.pm.
If all you want to do is change the widget to a different style then
change this code:
<TMPL_IF LIMITS>
<!-- not really implemented -->
<br><TMPL_VAR LIMIT_TITLE>
<TMPL_LOOP LIMITS>
<input type="checkbox" name="sbm" value="<TMPL_VAR VALUE>" /><TMPL_VAR LABEL>
</TMPL_LOOP>
</TMPL_IF>
If you want to have the .swishcgi.conf settings select the type of
widget then you would need to modify TemplateHTMLTemplate.pm so that
info is available in the HTML::Template hash.
Again, I think it's just easier to edit the template. My guess is
that's why I didn't add support for this in the first place.
>
> select_by_meta => {
> #method => 'radio_group', # pick: radio_group,
> popup_menu, or checkbox_group
> #method => 'checkbox_group',
> method => 'popup_menu',
> columns => 3,
> metaname => 'site', # Can't be a metaname used
> elsewhere!
> values => [qw/misc mod vhosts other/],
> labels => {
> misc => 'General Apache docs',
> mod => 'Apache Modules',
> vhosts => 'Virutal hosts',
> },
> description => 'Override from .swishcgi.conf: ',
> },
>
> But still doesn't display.
>
> Dave
>
>
--
Bill Moseley
moseley@hank.org
Received on Tue Dec 2 00:15:01 2003