Subject: Developers of Sympa
List archive
Re: [sympa-dev] Changing the login view, and integrating "home", "your lists", "all lists"...
- From: Olivier Salaun <address@concealed>
- To: Adam Bernstein <address@concealed>
- Cc: address@concealed
- Subject: Re: [sympa-dev] Changing the login view, and integrating "home", "your lists", "all lists"...
- Date: Wed, 12 Jun 2002 15:26:27 +0200
Adam Bernstein wrote:
>
> > Did you manage to use "get_which" and "topics" in your templates ?
>
> No, I've had no luck. Am I supposed to be able to use the same syntax
> with "get_which" that I'm using with "which"? When I do, I get no output
> from either ->NAME or ->subject.
'which' is a simple array of listnames, with no other information (subject,
host)
Here is how you can access it :
Your subscriptions :<BR>
[FOREACH l IN get_which]
<A HREF="[path_cgi]/info/[l]">[l]</A><BR>
[END]
> With "which_info" I do get the list info, but only for the ones I'm
> subscribed to,
> not the ones I'm an admin for. Does the ->admin value not exist in
> which_info?
You're right, 'which_info' is more complete but it might not always be up to
date.
I just fixed this in CVS :
http://listes.cru.fr/cgi-bin/cvsweb.cgi/sympa/wwsympa/wwsympa.fcgi.diff?r1=1.250&r2=1.251&f=c
Currently the admin information is not available...
> I could probably figure it out if I knew Perl better, but which variable
> should I use, and what values does it contain?
Concerning topics, here is a sample template :
Available categories :<BR>
[FOREACH t IN topics]
<A HREF="[path_cgi]/lists/[t->id]">[t->title]</A><BR>
[IF t->sub]
[FOREACH subt IN t->sub]
<A
HREF="[path_cgi]/lists/[t->id]/[subt->NAME]">[t->title]/[subt->title]</A><BR>
[END]
[ENDIF]
[END]
--
Olivier Salaün
Comité Réseau des Universités
- Re: [sympa-dev] Changing the login view, and integrating "home", "your lists", "all lists"..., Olivier Salaun, 06/12/2002
Archive powered by MHonArc 2.6.19+.