exturl

Summary

Manages URLs using the URL database

Usage

$input_string|exturl( [ quote ] )

Parameters

NameTypeDescriptionRequired
quote string Type of quote: single, double, no. Default is double. no

Returns

string containing the url found in the database.

Description

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.

Examples

<a href={"http://ez.no/community"|exturl}>Community</a>

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
       ezdesign
       ezimage
       ezroot
       ezurl
       exturl
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
12:49:51 pm
by Balazs Halasy

Last updated

10/02/2004
11:18:34 am
by Jan Borsodi

Authors

Balazs Halasy
Jan Borsodi



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.