BU Countries Select
Summary
Easy to add in countries drop down list.
Introduction
The BU_countries_select plugin provides an easy means of adding a Country Select drop down box to the front-end of your site. This is a very simple plugin whose primary purpose is to just save you from a bit of typing and was inspired by the example of Nathan Pitman’s UK Counties Select plugin, which does something very similar.
Download
Installation
Just unzip the plugin and FTP it to your plugins folder
Reference
It is a single tag variable, but there are a range of optional parameters that are available to allow you to control things. There are parameters for name, class, id, style which map to attributes for the select element produced, and selected, which maps to an attribute for a chosen option element should you wish to highlight it.
If you need to adjust the country list, just open the plugin file and adjust the $countries array.
Usage
Some examples:
{exp:bu_countries_select}
{exp:bu_countries_select name='your-country'}
{exp:bu_countries_select name='your-country'
id='select-country'}
{exp:bu_countries_select name='your-country'
id='select-country' selected='United Kingdom'}
Support
Please contact us for support.
Links
Archived Forum topic: http://expressionengine.com/forums/viewthread/106803/.
Change Log
- Version 1.0.1
- Fixed typos in documentation and country list
- Version 1.0.0
- First release
Last edited
11 December 2016
License
BU Countries Select is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales Licence.
Disclaimer
By downloading this software you assume all responsibility for its use and absolve BridgingUnit of any liability and/or responsibility.