Subject: The mailing list for listmasters using Sympa
List archive
- From: "Scott Johnson" <address@concealed>
- To: Olivier Salaün - CRU <address@concealed>
- Cc: <address@concealed>
- Subject: RE: [sympa-users] A simple display template
- Date: Tue, 11 Oct 2005 12:34:07 -0400
Yes, as usual I found the problem five minutes after I wrote the message, and
it was inded an incorrect URL. [Insert Homer Simpson imitation here].
I used a template mainly because absolutely everything else is in templates
and IMO once I overcame the "how-to" it would make administration more
consistent.
Again, thanks for the note and apologies for the goofy question! :)
-----Original Message-----
From: Olivier Salaün - CRU [mailto:address@concealed]
Sent: Tuesday, October 11, 2005 10:55 AM
To: address@concealed
Cc: address@concealed
Subject: Re: [sympa-users] A simple display template
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.
>
>
-
[sympa-users] A simple display template,
scott, 10/11/2005
- Re: [sympa-users] A simple display template, Olivier Salaün - CRU, 10/11/2005
- <Possible follow-up(s)>
- RE: [sympa-users] A simple display template, Scott Johnson, 10/11/2005
Archive powered by MHonArc 2.6.19+.