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.

eZ debug

Timing: Jan 18 2025 20:48:03
Script start
Timing: Jan 18 2025 20:48:03
Module start 'layout'
Timing: Jan 18 2025 20:48:03
Module start 'content'
Timing: Jan 18 2025 20:48:03
Module end 'content'
Timing: Jan 18 2025 20:48:03
Script end

Main resources:

Total runtime0.6454 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0313152.6406
Module start 'layout' 0.00570.0030 740.671939.4766
Module start 'content' 0.00870.6351 780.1484487.8516
Module end 'content' 0.64390.0015 1,268.00008.1406
Script end 0.6453  1,276.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5210160.0002
Check MTime0.00140.2120160.0001
Mysql Total
Database connection0.00080.126010.0008
Mysqli_queries0.598592.7425520.0115
Looping result0.00040.0588500.0000
Template Total0.613795.120.3069
Template load0.00220.336220.0011
Template processing0.611694.758920.3058
Template load and register function0.00020.023610.0002
states
state_id_array0.00100.158510.0010
state_identifier_array0.00100.162520.0005
Override
Cache load0.00170.2654140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.095810.0006
Fetch class attribute name0.00100.159130.0003
XML
Image XML parsing0.00240.367810.0024
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00260.4040160.0002
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs