Skip to main content.
home | support | download

Back to List Archive

RE: Problem with popup_menu and swish.cgi

From: David Fishburn <fishburn(at)not-real.ianywhere.com>
Date: Tue Dec 02 2003 - 00:07:54 GMT
> -----Original Message-----
> From: Bill Moseley [mailto:moseley@hank.org] 
> Sent: Monday, December 01, 2003 6:57 PM
> 
> On Mon, Dec 01, 2003 at 03:27:31PM -0800, David Fishburn wrote:
> 
> > So I tried changing the /usr/share/swish-e/swish.tmpl
> > 
> > I added the following section after the:
> >             <TMPL_IF SORTS>
> > section.
> > 
> > 	<TMPL_IF SELECT_BY_META>
> >                 Added by SELECT_BY_META:
> >                 <select name="metaname">
> >                     <TMPL_LOOP SORTS>
> >                         <option  value="<TMPL_VAR NAME>" ><TMPL_VAR
> > LABEL></option>
> >                     </TMPL_LOOP>
> >                 </select>
> >             </TMPL_IF>
> > 
> > This is never displayed at all.
> 
> Is "SELECT_BY_META" defined some place?

Yes, this is defined in my .swishcgi.conf

        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
Received on Tue Dec 2 00:07:59 2003