Joomla registration custom field as dropdown?

A place to discuss Joomla! translation matters.

Moderator: wendhausen

Locked
hirudo
I've been banned!
Posts: 24
Joined: Sat Apr 13, 2013 11:40 am

Joomla registration custom field as dropdown?

Post by hirudo » Mon May 13, 2013 12:21 pm

I added some extra field to Joomla. Everything working great. For example, I added "country" to registration.xml (components/com_users/models/forms):

Code: Select all

<field name="country" type="text"
        description="COM_USERS_REGISTER_COUNTRY_DESC"
        filter="string"
        label="COM_USERS_REGISTRATION_COUNTRY"
        required="true"
        size="40"
    />
But how to add a dropdown list? I want to give my users ability to select country from the list.

And similar question: I also added birthday field. How to add jQuery datepicker here?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Joomla registration custom field as dropdown?

Post by infograf768 » Tue May 14, 2013 6:45 am

Concerning the birthday, should be something like
<field name="birthday"
type="calendar"
label="COM_USERS_FIELD_BIRTHDAY_LABEL"
description="COM_USERS_FIELD_BIRTHDAY_DESC"
class="inputbox"
size="22"
format="%Y-%m-%d" labelclass="control-label" />
For a country list, see
http://www.krizalys.com/extension/krizalys-countries
http://www.krizalys.com/book/krizalys-c ... umentation
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Translations”