I’ve been digging around in eggs/ so see if I can find a way to make email
addresses on profile pages (/p/) visible to all group members.
In egg/gs/profile/view/browser/templates/page.pt there is:
<div id="emailContact"
tal:condition="authenticated"
tal:define="vis view/emailVisibility">
<h2 tal:condition="python:vis != 'nobody'">Email</h2>
<p tal:condition="python:vis == 'request'">
<a tal:attributes="href
string:${view/userInfo/url}/request_contact.html"
href="request_contact.html">Request email contact with
<span class="fn"
tal:content="view/userInfo/name">A. Person</span></a>
</p>
<ul tal:condition="python:vis == 'everybody'">
<tal:block repeat="address view/userEmailAddresses">
<li>
<a href="#" class="email emaillink"
tal:content="address"
tal:attributes="href string:mailto:${address};"/>
</li>
</tal:block>
</ul>
</div>
suggesting that if I make emailVisibility == everybody all will be good.
It seems that emailVisibility is derived from ‘showEmailAddressTo’ so I tried
setting this property for each site - but no dice.
I tried changing the page.pt and running buildout -N but it just uninstalled
most things! (fortunately I just git reset —hard to get things back)
As you can see I am poking around semi-randomly - does anyone have any
pointers?
Thanks
Nick
addresses on profile pages (/p/) visible to all group members.
In egg/gs/profile/view/browser/templates/page.pt there is:
<div id="emailContact"
tal:condition="authenticated"
tal:define="vis view/emailVisibility">
<h2 tal:condition="python:vis != 'nobody'">Email</h2>
<p tal:condition="python:vis == 'request'">
<a tal:attributes="href
string:${view/userInfo/url}/request_contact.html"
href="request_contact.html">Request email contact with
<span class="fn"
tal:content="view/userInfo/name">A. Person</span></a>
</p>
<ul tal:condition="python:vis == 'everybody'">
<tal:block repeat="address view/userEmailAddresses">
<li>
<a href="#" class="email emaillink"
tal:content="address"
tal:attributes="href string:mailto:${address};"/>
</li>
</tal:block>
</ul>
</div>
suggesting that if I make emailVisibility == everybody all will be good.
It seems that emailVisibility is derived from ‘showEmailAddressTo’ so I tried
setting this property for each site - but no dice.
I tried changing the page.pt and running buildout -N but it just uninstalled
most things! (fortunately I just git reset —hard to get things back)
As you can see I am poking around semi-randomly - does anyone have any
pointers?
Thanks
Nick