Skip to main content.
home | support | download

Back to List Archive

[swish-e] multiple indexes and checkbox_group default to all indexes

From: Wayne Humphrey <Wayne_Humphrey(at)not-real.symantec.com>
Date: Wed May 07 2008 - 16:16:12 GMT
Hi All,

 

I'm running SWISH-E 2.4.5 on ubuntu 8.04 2.6.24-16-server.  I am using
multiple indexes and a checkbox, however I would like to default check
all the boxes so the user can uncheck what he doesn't want to search
should he not want to.

 

My confing file contains the following:

 

        swish_index     => [ qw/ index-etrack.sw index-icos.sw
index-bugs.sw index-ev_75_sp2.sw index-ev_70_sp4.sw/ ],

        select_indexes  => {

                method  => 'checkbox_group',

                labels  => [ 'ETrack', 'ICOs', 'BUGs', '75 SP2 -
Source', '70 SP4 - Source' ],  

                description => 'Select: ',

 

which produces the following:

 

<label><input type="checkbox" name="si" value="0" checked="checked"
/>ETrack</label>

<label><input type="checkbox" name="si" value="1" />ICOs</label>

<label><input type="checkbox" name="si" value="2" />BUGs</label>

<label><input type="checkbox" name="si" value="3" />75 SP2 -
Source</label>

<label><input type="checkbox" name="si" value="4" />70 SP4 -
Source</label>

 

And all I would like to do is (checked="checked") on all the checkboxes.
I cannot find it any ware in TemplateDefault.pm any pointes?

 

Best Regards,

 

--wayne



_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed May 7 12:15:34 2008