URL
URL is a fieldtype for storing URLs. This fieldtype is validated for the content author, so that only fully-formed and valid URLs are allowed. The site builder can determine which URL schemes are allowed. URLs are entity-encoded so that they may be used directly in links and other HTML attributes:
note
The following examples use a field named url_field
. This should be replaced with your field name.
- Twig
- Blade
<a href="{{ entry.url_field }}">Your Link</a>
<a href="{{ $entry->url_field }}">Your Link</a>
info
See the ExpressionEngine Documentation for more information on the URL fieldtype