New Tool for Joomla Developers |
Saturday, 14 January 2012 11:51 |
Self-Replicating Form Field for JoomlaThere are times as a Joomla extension developer when it would be very useful to have a form field in Joomla that is capable of self-replication. For example, you want your user to be able to input some links, but you don't know in advance how many there will be, you want your user to be able to choose to add as many as they want without imposing any arbitrary limit. What you want is a self-replication form field that can return its values as an array. Well now you can have one. We have designed a system of self-replicating form fields for Joomla extensions. The variable field form field can be used to generate self-replicating fields of most of the Joomla standard field types, including text, textarea, list and other list based types, such as category or usergroup. The user will see the standard input field, plus buttons which allow the user to add or delete input fields, also to re-order them, also to re-order them up and down. You can see a couple of simple examples, for the text and list fields, here. Best of all, you can download it for free here. This tool for Joomla developers is designed to generate self-replicating form fields for use in Joomla extensions. It is compatible with Joomla 1.5 and 1.6/1.7/2.5, with mootols 1.1 and 1.2 and 1.3, and does not require any other javascript library, so no conflicts with the Joomla admininstrator template. It is very lightweight, consisting of a single javascript file, plus the the Joomla element and formfield classes necessary to generate the custom parameter. It can be used in component, module or plugin parameters to generate an array of self-replicating form fields. Instead of returning a single value as a standard Joomla parameter does, it returns an array of values. |
Last Updated on Saturday, 17 March 2012 12:23 |