elivz / vz_url

URL FieldType for ExpressionEngine with ajax validation
https://devot-ee.com/add-ons/vz-url-extension
Other
31 stars 4 forks source link

parse_url host #4

Closed arosenhagen closed 11 years ago

arosenhagen commented 11 years ago

It'll be nice to only show the host part of the url (e.g.: http://www.google.de -> www.google.de). I'd suggest {field_name}{host}{/field_name}

elivz commented 11 years ago

That tag actually already exists. It just got left out of the documentation somehow. You can use any of the return values from http://php.net/manual/en/function.parse-url.php in that tag pair.