fetch( 'content', 'bookmarks', hash( [ 'offset', offset, ] [ 'limit', limit ] ) )
Name | Type | Description | Required |
---|---|---|---|
offset | integer | Number of bookmarks to skip. | No. |
limit | integer | Maximum number of bookmarks to fetch. | No. |
An array of ezcontentbrowsebookmark objects.
Fetches the bookmarks of the current user and returns an array of ezcontentbrowsebookmark objects. The resulting array starts with the most recently added bookmark.
{def $bookmarks=fetch( 'content', 'bookmarks' )} {foreach $bookmarks as $bookmark} <a href={$bookmark.node.url_alias|ezurl}>{$bookmark.name|wash}</a> <br /> {/foreach}
Outputs all the bookmarks (as links) for the current user.
{def $bookmarks=fetch( 'content', 'bookmarks' )} {foreach $bookmarks as $bookmark} <a href={$bookmark.node.url_alias|ezurl}>{$bookmark.name|wash}</a> <br /> {/foreach}
Outputs the five most recently added bookmarks (as links) for the current user.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.