Subject: The mailing list for listmasters using Sympa
List archive
- From: Alban Rodriguez <address@concealed>
- To: "Silvers, Tim" <address@concealed>
- Cc: "address@concealed" <address@concealed>
- Subject: Re: [en@sympa] Evaluating input in form fields
- Date: Thu, 17 Nov 2022 12:29:37 +0100
Hello,
May I suggest you have a look at automatic lists and lists families ?
To be clear, we’re not using these features here but I think (from reading the manual) one of them allows/enforces a naming scheme for your lists.
This way, you wouldn’t have to hack into Sympa’s source code.
Sorry I can’t provide some more precise hints though.
Have a nice day
Alban
Le 16 nov. 2022 à 22:25, Silvers, Tim <address@concealed> a écrit :So, is there no one doing this? Do the developers have any suggestions? I would rather not start modifying the Sympa code to hack this in and then have to monitor and fix it as upgrades clobber my changes.Thanks,TimFrom: address@concealed <address@concealed> on behalf of Silvers, Tim <address@concealed>
Date: Tuesday, November 15, 2022 at 1:58 PM
To: address@concealed <address@concealed>
Subject: [External] [en@sympa] Evaluating input in form fieldsThis message was sent from a non-IU address. Please exercise caution when clicking links or opening attachments from external sources.Hi. Has anyone customized Sympa to perform any form field input validations? In our case, we would like to ensure that any created lists include a “-L” (i.e., dash el) in their names. The code is in create_list_request.tt2 and I have been reviewing the template directives [1] in an attempt to find a solution. Perhaps a FILTER would work? Or a PERL block?Here is the code from create_list_request.tt2:<input type="text" id="listname" name="listname" size="30" value="[% saved.listname %]" /><!-- CODE CHECK FOR DASH EL IN LIST NAME -->[% IF saved.listname !~ '<chars>-L$' %][% SET saved.listname = ${saved-listname} _ '-l' %][% END %]Tim
-
[en@sympa] Evaluating input in form fields,
Silvers, Tim, 11/15/2022
-
Re: [en@sympa] Evaluating input in form fields,
Silvers, Tim, 11/16/2022
-
Re: [en@sympa] Evaluating input in form fields,
David Verdin, 11/17/2022
- Re: [en@sympa] Evaluating input in form fields, Silvers, Tim, 11/17/2022
- Re: [en@sympa] Evaluating input in form fields, Alban Rodriguez, 11/17/2022
-
Re: [en@sympa] Evaluating input in form fields,
David Verdin, 11/17/2022
-
Re: [en@sympa] Evaluating input in form fields,
IKEDA Soji, 11/18/2022
- Re: [en@sympa] [External] Re: Evaluating input in form fields, Silvers, Tim, 11/18/2022
-
Re: [en@sympa] Evaluating input in form fields,
Silvers, Tim, 11/16/2022
Archive powered by MHonArc 2.6.19+.