Skip to main content.
home | support | download

Back to List Archive

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

From: Dan Lobo <dan.lobo(at)not-real.cot.co.uk>
Date: Thu May 08 2008 - 09:27:48 GMT
I was wondering about this too.
 
As opposed to swish_index =>
 
I think you can use default_index => 
 
and these will be the ones that are selected automatically .
 
Regards, 
 
Dan 

-----Original Message-----
From: users-bounces@lists.swish-e.org [mailto:users-bounces@lists.swish-e.org]On Behalf Of Wayne Humphrey
Sent: 07 May 2008 17:16
To: users@lists.swish-e.org
Subject: [swish-e] multiple indexes and checkbox_group default to all indexes



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


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



- ---------------------------------------------------------------
DISCLAIMER

This e-mail transmission, including any attachments, is strictly confidential and intended solely for the addressee. It may contain private and confidential information and, if you are not the intended recipient, any review, retransmission or other use of, or taking any action in reliance upon, this information is prohibited.
The views expressed in this e-mail are those of the originator and not necessarily the views of BAOT / COT
If you have received this e-mail in error, please contact the sender and delete the material from any computer.
BAOT / COT has taken steps to ensure that this e-mail and attachments are free from any virus. In keeping with good computing practice, the recipient should carry out their own virus checks.
Please note that this e-mail has been created in the knowledge that internet e-mail is not a 100% secure communication medium. We advise that you understand this lack of security and take any necessary measures when e-mailing us.
BAOT / COT reserves the right to read any e-mail or attachment entering or leaving its systems from any source without prior notice.


INFORMATION ABOUT BAOT / COT

BAOT:   The British Association of Occupational Therapists Limited is a company limited by guarantee and registered in England (Company number 392350).

COT:   The College of Occupational Therapists Limited is a company limited by shares and registered in England (Company number 1347374). The College is also a registered charity in England and Wales (Charity number 275119).

The registered office of both BAOT and COT is 106-114 Borough High Street, Southwark, London, SE1 1LB.

- ---------------------------------------------------------------

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu May 8 05:25:17 2008