Creating a notification remove button

Author Message

James Ward

Wednesday 14 July 2004 8:55:49 am

Hi all,
I'm wondering if it is possible to create a single remove button for subtree notification instead of the current select box than remove button process. Specifically I am looking to modify the ezsubtree edit template to make the notification removal process easier for my end users.

An example for removing objects can be found at http://www.ez.no/ez_publish/documentation/customization/tips_tricks/adding_a_remove_button_image

But I have been unable to modify it to handle the $subscribed_nodes used by the ezsubtree edit.tpl

First is this possible and second has anyone done it (an example would be great)?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca

James Ward

Thursday 15 July 2004 1:47:05 pm

In case anyone else ever needs this here is my solution:

<form method="post" action={"/notification/settings/"|ezurl}>
<div style="display: inline;">
<input type="hidden" name="SelectedRuleIDArray_{$handler.id_string}[]" value="{$Rules:item.id}" />
<input type="hidden" name="ContentObjectID" value="{$Rules:item.node.object.id}" />
<input type="image" name="RemoveRule_{$handler.id_string}" value="{'Remove'|i18n('design/standard/notification')}" src={"bin.gif"|ezimage} />
</div> 
</form>

working at www.wardnet.com
blogging at www.jamesward.ca

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