Subject: The mailing list for listmasters using Sympa
List archive
RE: [sympa-users] show custom_attributes for subscriber
- From: Steve Shipway <address@concealed>
- To: "address@concealed" <address@concealed>, "address@concealed" <address@concealed>
- Subject: RE: [sympa-users] show custom_attributes for subscriber
- Date: Fri, 25 Jan 2013 03:38:09 +0000
I think you will need to edit web_tt2/subscriber_table.tt2 (actually, copy
the default one to your sympa/web_tt2 rather than edit the default on) and
change the rules on when these fields are printed.
Possibly add a list custom attribute (members_can_see_attributes) to the
list, and set it to '1'.
Then, in your edited subscriber_table.tt2, you will need to copy the section
that adds the list_conf.custom_attribute headers and body (inside the 'if
is_owner' test) and place it also inside and 'if
custom_vars.members_can_see_attributes and ! is_owner' (you need to say
!is_owner so that owners do not see it twice)
This should work.
EG (for body, need to do this for the head as well):
[% FOREACH ca_k IN list_conf.custom_attribute %]<td>[% SET id =
ca_k.id %][% u.custom_attribute.$id.value %]</td>[% END %]
[% END %]
<!-- end of the 'if owner' section -- add here -->
[% IF custom_vars.members_can_see_attributes and ! is_owner %]
[% FOREACH ca_k IN list_conf.custom_attribute %]<td>[% SET id = ca_k.id %][%
u.custom_attribute.$id.value %]</td>[% END %]
[% END %]
<!-- end of added bit -->
Steve
Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
address@concealed
Ph: +64 9 373 7599 ext 86487
________________________________________
From: address@concealed
[address@concealed] on behalf of address@concealed [address@concealed]
Sent: Friday, 25 January 2013 3:40 a.m.
To: address@concealed
Subject: [sympa-users] show custom_attributes for subscriber
Hi folks,
I have a problem with Sympa. I created a list to get all known users of Sympa
(with include sql query). In list configuration I defined some custom
attribute parameters.
If the user is a listmaster or the owner of the list and click "Review
members" all custom attributes are listed - thats what I want - OK. But when
the same action is done by a subscriber the custom attributes are not shown. I
really don't know, what I can do, to show all custom attributes to a normal
subscriber.
Has anyone a idea what can I do?
Best regards!
-
[sympa-users] show custom_attributes for subscriber,
mzo, 01/24/2013
- RE: [sympa-users] show custom_attributes for subscriber, Steve Shipway, 01/25/2013
- <Possible follow-up(s)>
- [sympa-users] show custom_attributes for subscriber, mzo, 01/24/2013
Archive powered by MHonArc 2.6.19+.