Forums / Setup & design / Deleting bookmarks using an override template

Deleting bookmarks using an override template

Author Message

Jon Staines

Monday 19 June 2006 8:24:03 am

I made an override template based on the standard content/bookmark.tpl file. This was to change the text on the page and remove the link to edit pages if the user has the correct permissions. This left just a list of checkboxes with the page names beside them, and at the bottom is the dustbin icon/button.

But if you mark a checkbox and click the dustbin then the page just reloads without deleting the bookmark. Deleting a bookmark works fine in the original template.

What am I missing or is there a file I need to edit to allow a new template form to perform an action?

Regards
Jon

Ɓ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.

eZ debug

Timing: Jan 21 2025 06:09:18
Script start
Timing: Jan 21 2025 06:09:18
Module start 'content'
Timing: Jan 21 2025 06:09:18
Module end 'content'
Timing: Jan 21 2025 06:09:18
Script end

Main resources:

Total runtime0.1659 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.9609180.8125
Module start 'content' 0.00750.0057 769.773494.0547
Module end 'content' 0.01320.1526 863.8281522.6250
Script end 0.1658  1,386.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.1957200.0002
Check MTime0.00150.8851200.0001
Mysql Total
Database connection0.00150.894710.0015
Mysqli_queries0.115369.48231410.0008
Looping result0.00120.73921390.0000
Template Total0.152291.810.1522
Template load0.00090.543210.0009
Template processing0.151391.233310.1513
Override
Cache load0.00070.396010.0007
Sytem overhead
Fetch class attribute can translate value0.00080.499910.0008
XML
Image XML parsing0.00020.147810.0002
General
dbfile0.00684.1007200.0003
String conversion0.00000.003630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs