Skip to content Flash-fx website
flash-fx logo image1
flash-fx logo image2
Simple solutions to complex problems. Historical swordsmanship Great online resource and forums relating to Maya and 3D.
Home << Tutorials << Plone << Displaying authors email even if not logged in

Displaying authors email even if not logged in

Code changes:
To make the email property (from Portal_Memberdata) visible you need to go
to the filesystem in the plone instance and edit the following file:
    CMFPlone/MembershipTool.py
Find the function:
    def getMemberInfo
and in the section where the memberinfo array is created add another line
(not at the bottom of the entries) for the email line like:
    'email'       : member.getProperty('email'),

You now need to create a template that displays the information.
In the ZMI go to:
    portal_skins/custom
and add a page template from the right hand dropdown.
Give it the name 'authorInfoTest' and click 'Add and Edit'
Now delete the current content and copy the template from below:




Test:
To test the page simply go to your plone website and add on the
name of the template along with the userID
e.g,
    http://mysite/authorInfoTest?author=webmaster

and you will see the email address of that user