ez.no / exponential / documentation / reference / data fetching / url / list
fetch( 'url', 'list', hash( [ 'is_valid', is_valid, ]
[ 'offset', offset, ]
[ 'limit', limit ] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| is_valid | boolean | Wether to fetch valid or invalid URLs. | No. |
| offset | integer | Start fetching from this offset. | No. |
| limit | integer | Maximum number of URLs to fetch. | No. |
Array of ezurl objects.
This function fetches a list of URL objects that are stored in Exponential. URLs that are created using the URL datatype or the link-tag within an XML text datatype can be retrieved. The function returns an array of ezurl objects.
{let urls=fetch( 'url', 'list', hash( 'is_valid', true(), 'offset', 0, 'limit', 10 ) )} {section var=url loop=$urls} {$url.url}<br /> {/section} {/let}
The code above will fetch and list the first 10 valid URLs.
Comments