This question about Using an extension: Answered

Email display


I am trying to get the email that a user submits at registration to appear in their wiki page in the personal info section.

I've had to use the field name "Email" as the use of WorkEmail as a field name stopped the registration process from recognising an email as an acceptable string. So I've included a field in UserForm called Email, and then added an INCLUDE in personalInfoFields in Main/PersonalInfo.

In my template I have a string (%USERINFO{"%TOPIC%" format="$emails"}%) which displays the email from registration on my page - but this can only be seen when I have logged in.

Currently, I have to register, login to my page and then 'edit data' for my personal info to have it included on my page for all to see. Is there anyway to get the personalInfo to pick up the email data from the initial registration?

Thanks in advance.

PhilipParsons - 14 Feb 2011

I also have these problems with the redundant email fields. It's confusing for the users.

There are 3 places where the email addresses can be stored:

  • In the form field "Email", which is not shown in the default PersonalInfoAddOn user profile template, but it's visible when the user clicks "Edit"..

  • In the form field "WorkEmail", which is labeled "E-mail" in the default PersonalInfoAddOn user profile template.

  • In the file data/.htpasswd. This version is used by Foswiki internally and is returned by the USERINFO macro. To change it, the user has to use ChangeEmailAddress.
What is the best way so solve this confusion?

-- ChristianDHeureuse - 11 Sep 2011

The email in data/.htpasswd is the official user email. The other emails are 'just' for display. You are free to remove WorkEmail in PersonalInfoAddOn and use Email in PersonalInfo setup.

-- ArthurClemens - 13 Sep 2011

QuestionForm edit

Subject Using an extension
Extension PersonalInfoAddOn
Version Foswiki 1.0.6
Status Answered
Related Topics
Topic revision: r4 - 02 Dec 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy