justb3a Posted September 28, 2015 Posted September 28, 2015 Displays countries and continents and their iso codes. The "value" for each country is the two-letter country code. As an added bonus, the country names are displayed in the language of the user (sorted by name ASC) if the appropriate translation was added. read more ... 17
justb3a Posted May 30, 2017 Author Posted May 30, 2017 Version 1.0.0:[New] The module contains a Fieldtype Select Options Countries: 4 1
mel47 Posted October 6, 2017 Posted October 6, 2017 Hi Is it possible to get all countries and not only by continent? Currently if I let empty "choose continent to get countries from", the field is empty. It works only if I choose one of the continent. Thanks!
justb3a Posted October 23, 2017 Author Posted October 23, 2017 @mel47 You could use the following methods: $countries = $modules->get('ContinentsAndCountries')->getCountries(); // OR: $countries = $modules->get('ContinentsAndCountries')->findBy('countries', ['code', 'name']);
mel47 Posted October 24, 2017 Posted October 24, 2017 Thanks I get it's in case for use in a php template? I need it for backend, in the selection input. Melanie 1
justb3a Posted November 4, 2017 Author Posted November 4, 2017 ah, good hint I added an option at the top of the list to select – All – countries. 1 1
bbeer Posted March 21, 2019 Posted March 21, 2019 Hi all I would like to use this field with Formbuilder but somehow don't manage to add that. Is it possible to use this with Formbuilder?
LostKobrakai Posted March 21, 2019 Posted March 21, 2019 @bbeer It's not. FormBuilder does not use Fieldtypes, but only Inputfields. This module is just a custom Fieldtype using the core InputfieldSelect for it's input.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now