Online Programme Bookmark Data Function

The bookmark function is used to enable a user to toggle the bookmarking of an object being displayed in the current page.

It is not necessary to create the Bookmark function directly in the page template.

To save time, each object in the JSON contains a Bookmark property that will resolve to a Bookmark function data tag and all relevant Context, Output and Id required for bookmarking the object.

Example

The {{Bookmark}} handlebars can be added to any html element in order to enable the object to be bookmarked:

<div {{Bookmark}} title='Click to bookmark or unbookmark this page'>
  <span class='fa fa-bookmark-o'></span>
</div>

The {{Bookmark}} handlebars for an object resolves to the Bookmark function data tag and supporting data tags.

<div data-function='Bookmark'
     data-context='Entry'
     data-output='ItemPage'
     data-id='7210'
     data-parametertype='EntryDefinition'
     data-parametervalue='47deede7-bda4-4df8-8a2a-6692bc080d7f'
     title='Click to bookmark or unbookmark this page'>
  <span class='fa fa-bookmark-o'></span>
</div>

Data Tags

Comments