Forums / Setup & design / How to add node to a users bookmarks?

How to add node to a users bookmarks?

Author Message

Maarten Holland

Friday 25 November 2005 6:28:56 am

Hi all,

Could you perhaps tell me what code I need to place in my template to create a link or button that adds the currently viewed node to the bookmarks of the current users?

Cheers,

Maarten

Ɓukasz Serwatka

Monday 28 November 2005 12:42:36 am

Hi Maarten,

You can use following code in your template:

<form method="post" action={"/content/action"|ezurl}>
  <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
  <input type="submit" name="ActionAddToBookmarks" value="Add to bookmarks" />
</form>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog