Skip to content
ajitbohra edited this page Dec 1, 2014 · 10 revisions

A URL Field.

url

Args

Some arguments are required, some are optional

Required Args

  • id string (required)
  • type 'text_url' (required)
  • name (string) (required) Field display name. Used as field label.

Optional Args

  • desc (string) Field description. Displayed below label.
  • repeatable (bool) see Repeatable Fields
  • readonly (bool) Prevent authors editing this field
  • default (string) Set a default value
  • cols int [1-12]

Example Usage

array( 
	'id'   => 'example-field-url', 
	'name' => 'A URL input', 
	'type' => 'text_url', 
),