Difference between revisions of "Captcha form field type"

From Joomla! Documentation

(Change this to show how to use the captcha formfield rather than how to use the plugin type to select a captcha plugin.)
m (Add namespace but I don't know what it means.)
Line 13: Line 13:
 
<translate><!--T:6-->
 
<translate><!--T:6-->
 
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate>
 
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate>
 +
<translate><!--T:7-->
 +
* '''namespace''' (optional) this is used on the com_contact component but I don't know enough about it to comment.</translate>
  
<translate><!--T:7-->
+
<translate><!--T:8-->
 
Example XML Definition:</translate>
 
Example XML Definition:</translate>
 
<source type="xml">
 
<source type="xml">
 
<field name="captcha" type="captcha" validate="captcha"
 
<field name="captcha" type="captcha" validate="captcha"
label="COM_CONTACT_FIELD_CAPTCHA_LABEL"
+
namespace="contact"
description="COM_CONTACT_FIELD_CAPTCHA_DESC" >
+
label="COM_CONTACT_CAPTCHA_LABEL"
 +
description="COM_CONTACT_CAPTCHA_DESC" >
 
</field>
 
</field>
 
</source>
 
</source>
Line 25: Line 28:
 
<noinclude>
 
<noinclude>
 
<translate>
 
<translate>
<!--T:8-->
+
<!--T:9-->
 
[[Category:Standard form field types]]
 
[[Category:Standard form field types]]
 
</translate>
 
</translate>
 
</noinclude>
 
</noinclude>

Revision as of 23:45, 19 November 2015

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎हिन्दी

Provides the use of a captcha plugin.

  • type (mandatory) must be captcha.
  • name (mandatory) is the unique name of the field.
  • validate (mandatory optional ?) must be captcha.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
  • namespace (optional) this is used on the com_contact component but I don't know enough about it to comment.

Example XML Definition:

<field name="captcha" type="captcha" validate="captcha"
	namespace="contact"
	label="COM_CONTACT_CAPTCHA_LABEL"
	description="COM_CONTACT_CAPTCHA_DESC" >
</field>