ez.no / exponential / documentation / reference / data fetching / content / bookmarks
fetch( 'content', 'bookmarks',
hash( [ 'offset', offset, ]
[ 'limit', limit ] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| offset | integer | number of items to skip | no |
| limit | integer | max. number of to items to fetch | no |
Bookmarks of current user.
Fetches the bookmarks of the current user.
From 3.5:
The parameters offset and limit are available and the fetched list starts with the most recent bookmark.
Example 1
{section loop=fetch( 'content', 'bookmarks' )} <a href={$:item.url_alias|ezurl}>{$:item.name|wash}</a> {/section}
Outputs link and name of every bookmark for the current user.
Example 2
N.B. This example will only work in version 3.5 and later.
{section loop=fetch( 'content', 'bookmarks', hash( 'limit', 5 ))} <a href={$:item.url_alias|ezurl}>{$:item.name|wash}</a> {/section}
Fetches the five most recent bookmarks for the current user.
Comments