Skip to Content.
Sympa Menu

en - Re: [sympa-users] A simple display template

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün - CRU <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Re: [sympa-users] A simple display template
  • Date: Tue, 11 Oct 2005 17:54:42 +0200

Hi Scott,

It looks like you did things the right way, including a correct do_terms() subroutine.
What strikes me is the "terms : unknown list" error you get that seems to indicate that you just used a wrong URL to access your action page. It should be http://your.site/sympa/terms

You should also check sympa log files.

I have a silly question : is there a reason why a static web page would not meet your needs ? Any kind of access control or customization ?

address@concealed wrote:

I'm trying to get sympa to display a simple bit of static HTML (our user's
agreement). I have placed that HTML in its own template, terms.tt2. I have
made sure terms.tt2 is owned by the sympa user and I have placed it in the
/home/sympa/etc/web_tt2 directory.

I tried to follow the directions here:

http://www.sympa.org/fom-serve/cache/263.html

but unfortunately my perl is extremely weak and I can't get the template to
display. I added this:

'terms' => 'do_terms',

to the %comm hash. I added this:

'terms' => [],

to the %action_args hash. I added nothing to the %in_regexp hash because, as I read the instructions, this static template will take no special arguments.
Unfortunately I couldn't find a subroutine that simply takes the contents of
a template and displays them. This is probably again because my perl is very
poor. So instead I created the following in wwsympa.fcgi:

sub do_terms {
return 1;
}

I have a very strong feeling this subroutine won't work, but I can't for the life of me figure out what will. All I'm getting are " terms : unknown list wrong_param" errors.
If someone could point me to a subroutine that simply displays the contents of a
template without taking any other action that'd probably fix me right up. I'll
just copy & alter to suit.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.19+.

Top of Page