ez.no / exponential / documentation / reference / template operators / urls / exturl
$input_string|exturl( [ quote ] )
| Name | Type | Description | Required |
|---|---|---|---|
| quote | string | Type of quote: single, double, no. Default is double. | no |
string containing the url found in the database.
This operator looks up the input value in the URL database. If the URL exists it will fetch the real value of the URL and return that, if not the URL will be registered and returned as it is.
The uses for this operator is to manage URLs in templates and to use the URL module to manage the urls (changing the URL for instance).
By default, the returned string is encapsulated by double quotes. However, this can be changed by using the quote parameter. The quote parameter can be set to either "single", "double" or "no". The "single" option tells the operator to encapsulate the returned string in single quotes and "no" will simply tell the operator to drop quotes completely.
Note: This operator can be slow since it does a database call for each url.
<a href={"http://ez.no/community"|exturl}>Community</a>
Comments