.(JavaScript must be enabled to view this email address)
+44 (0) 870 471 8579

Labs

ExpressionEngine

BU Countries Select

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'}

Links

Forum topic: http://expressionengine.com/forums/viewthread/106803/.
Please go here for support.

Change Log

Version 1.0.0
First release
Version 1.0.1
Fixed typos in documentation and country list

Last edited

12 April 2010

License

Disclaimer

By downloading this software you assume all responsibility for its use and absolve BridgingUnit of any liability and/or responsibility.