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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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