Actions

Difference between revisions of "URL form field type"

From Joomla! Documentation

(Created page with "This field essentially is a text field with the type of url. If a fully qualified url (that is one with a scheme and domain such as http://example.com) is entered and it uses ...")
 
Line 1: Line 1:
This field essentially is a text field with the type of url. If a fully qualified url (that is one with a scheme and domain such as http://example.com) is entered and it uses idn (that is uses characters that are non ascii such as ê or Ψ) it will translate the url into punycode prior to saving.  This assures that the url will work as intended regardless of environment.  If you want to render field data in idn you should wrap it with the conversion method JStringPunycode::urlToUTF8($this->contact->webpage).
+
This field essentially is a [[Text_form_field_type | text field]] with the type of url. If a fully qualified url (that is one with a scheme and domain such as <nowiki>http://example.com</nowiki>) is entered and it uses idn (that is uses characters that are non ascii such as ê or Ψ) it will translate the url into punycode prior to saving.  This assures that the url will work as intended regardless of environment.  If you want to render field data in idn you should wrap it with the conversion method <source langhtml4strict> JStringPunycode::urlToUTF8($this->contact->webpage) </source>.
 +
 
 +
Both a url rule and a url input filter can assist with this insuring that valid url data are entered into this field field

Revision as of 20:03, 23 June 2013

This field essentially is a text field with the type of url. If a fully qualified url (that is one with a scheme and domain such as http://example.com) is entered and it uses idn (that is uses characters that are non ascii such as ê or Ψ) it will translate the url into punycode prior to saving. This assures that the url will work as intended regardless of environment. If you want to render field data in idn you should wrap it with the conversion method

 JStringPunycode::urlToUTF8($this->contact->webpage)

.

Both a url rule and a url input filter can assist with this insuring that valid url data are entered into this field field