Deleting bookmarks using an override template

Deleting bookmarks using an override template

Monday 19 June 2006 8:24:03 am - 2 replies

Author Message

Ɓukasz Serwatka

Tuesday 27 June 2006 12:07:22 am

Make sure that remove button name is RemoveButton

<input type="submit" name="RemoveButton" value="{'Remove'|i18n('design/standard/content/view')}" />

For action use

<form action={"/content/bookmark"|ezurl} method="post" >

For remove checkboxes use

<input type="checkbox" name="DeleteIDArray[]" value="BOOKMARK_ID_HERE" />

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

Jon Staines

Monday 25 September 2006 2:57:37 am

Sorry for the late reply.

Thanks for that information. In my template I have:

  <input type="checkbox" name="DeleteIDArray[]" value="{$:item.id}" />

  <form action={concat("content/bookmark/")|ezurl} method="post" >

  <input type="image" name="RemoveButton" value="{'Remove'|i18n('design/standard/content/view')}" src={"trash.png"|ezimage} alt="{'Remove'|i18n('design/standard/content/view')}" />

I'll try it with just what you had for the form action and see if it works.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.