[documentation] [Documentation feature] adding a country field to the profile (how to page)

lsabug drupal-docs at drupal.org
Mon Jul 17 03:33:05 UTC 2006


Issue status update for 
http://drupal.org/node/63904
Post a follow up: 
http://drupal.org/project/comments/add/63904

 Project:      Documentation
 Version:      <none>
 Component:    Admin Guide
 Category:     feature requests
 Priority:     minor
 Assigned to:  Anonymous
 Reported by:  rivena
 Updated by:   lsabug
 Status:       active

Thank you Anisa for posting this step by step guide to adding countries
to user profiles. It was exactly what I was looking for : )
lsabug




lsabug



Previous comments:
------------------------------------------------------------------------

Tue, 16 May 2006 19:16:55 +0000 : rivena

Attachment: http://drupal.org/files/issues/profile-country-list.txt (2.72 KB)

Hi, everyone.  I have finally gotten a chance to put together a
production drupal site, and I've been trying to help out in little ways
I can.


I don't really think this deserves its own how to page, but I went
through the effort of making a nice list of countries and wanted to
share it.  I didn't want to post the list of countries inside the book
page, so I am submitting an issue.  I think this page is a little
redundant, with other things in the profile module section.


--------
HOWTO: Create a 'country' profile field
This page describes how to create a 'country' field in your users'
profiles, similar to the one on Drupal.org, that lets you easily find
users in any country.  For Drupal 4.7.



* Enable the profile module.
* Create a new profile field.
* Go to the profile settings page (/administer > settings > profiles/
?q=admin/settings/profile)
* Select the 'list selection' type of form field.

* Category (required): It can be a category you already have or a new
one.  (Suggested: Personal Information)
* Title (required): Anything is OK.  (Suggested: Country)
* Form name (required): Anything is ok, as long as it is unique. 
(Suggested: profile_country)
* Explanation (optional): Usually, country is self explanatory, but you
may want to write a note here to your users about this field.
* Selection options: Copy the list from the attached file here.  This
file is from Wikipedia
(http://en.wikipedia.org/wiki/List_of_countries May 2006)


* Weight:  Select whatever you like (this is the weight in the category
selected above).
* Visibility: Select one of the 'Public Field' options.
* Page title (required): You must put something here.  (Suggested:
People who live in)
* Check boxes: Check 'the user must enter a value' to make this field
required.  Check 'visible in user registration form' to make it part of
user registration.

* Click on 'Save field.'



------------------------------------------------------------------------

Wed, 17 May 2006 17:02:15 +0000 : rivena

I must change one line.  I forgot to add the %value part.  I thought
Drupal would append it to the end, but now that I think of it, that
would be needlessly limiting:


Page title (required): You must put something here. (Suggested: People
who live in %value)


Anisa.






More information about the documentation mailing list