DocUrl

Retrieves the URL of the file in the weblayout directory. This variable is evaluated once per content item, not once per service call.

Type and Usage

Output

Returns the URL of the file as a string.

Example

Used to build URL links to content items.

<$if HasUrl$>
    <a href="<$DocUrl$>"><$dDocName$></a>
<$else$>
    <$dDocName$>
<$endif$>