The Joomla! Forum ™






Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon May 13, 2013 12:21 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 13, 2013 11:40 am
Posts: 24
I added some extra field to Joomla. Everything working great. For example, I added "country" to registration.xml (components/com_users/models/forms):

Code:
<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?

_________________
I'm using Joomla! 3because support for the Joomla 3 series ends in 2016.
http://www.hirudo.ir.http://www.amlaksite.ir


Top
 Profile  
 
PostPosted: Tue May 14, 2013 6:45 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
Concerning the birthday, should be something like

Quote:
<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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group