Subject: The mailing list for listmasters using Sympa
List archive
- From: Peter Farmer <address@concealed>
- To: address@concealed
- Cc: Adam Bernstein <address@concealed>
- Subject: Re: [sympa-users] Re: Increasing SQL query length
- Date: Wed, 25 Oct 2006 12:49:37 +0800
On Wednesday 25 October 2006 9:11 am, Adam Bernstein wrote:
> > The only HTML input size that we set is the length of the visible part
> > of inputs. We don't define the max length, therefore the defaults
> > should apply. If you want to change the maximum length of input fields
> > you should try setting the "maxlength" attribute to a bigger value. I
> > guess it could be done in the CSS but I'm not an expert...
>
> I can certainly try setting that attribute on the input field, but where
> do I do that? I'm totally confused by the code that generates those list
> settings pages, and would appreciate a pointer.
>
> ab
You cant set maxlength in CSS - its an html form element attribute not a
display style. You'll have to modify the tt2 template edit_list_request.tt2
heres the diff for 5.2.0
152c152
< <input type="text"
name="single_param.[% p.name %].[% o_INDEX %].[% key.name %]"
id="single_param.[% p.name %].[% o_INDEX %].[% key.name %]" value="[%
key.value %]" size="[% key.length %]" />
---
> <input [% key.name ==
'sql_query' ? 'maxlength="1200"' : '' %] type="text" name="single_param.[%
p.name %].[% o_INDEX %].[% key.name %]" id="single_param.[% p.name %].[%
o_INDEX %].[% key.name %]" value="[% key.value %]" size="[% key.length
%]" />
i.e. add
[% key.name == 'sql_query' ? 'maxlength="1200"' : '' %]
to the input attributes on line 152
This is a bit hackish, but I dont think there's any other way to do it .
I doubt that the maxlength setting is causing your problem though ... have
you looked in the expl/listname/config file to see what has been stored by
the gui interface ?
Regards,
Peter Farmer
-
[sympa-users] Increasing SQL query length,
Adam Bernstein, 10/20/2006
-
[sympa-users] Re: Increasing SQL query length,
Adam Bernstein, 10/23/2006
-
Re: [sympa-users] Re: Increasing SQL query length,
Olivier Salaün - CRU, 10/24/2006
-
Re: [sympa-users] Re: Increasing SQL query length,
Adam Bernstein, 10/25/2006
- Re: [sympa-users] Re: Increasing SQL query length, Peter Farmer, 10/25/2006
-
Re: [sympa-users] Re: Increasing SQL query length,
Adam Bernstein, 10/25/2006
- Re: [sympa-users] Re: Increasing SQL query length, Peter Farmer, 10/24/2006
-
Re: [sympa-users] Re: Increasing SQL query length,
Olivier Salaün - CRU, 10/24/2006
-
[sympa-users] Re: Increasing SQL query length,
Adam Bernstein, 10/23/2006
Archive powered by MHonArc 2.6.19+.