Forums / General / kill object with a template operator ??

kill object with a template operator ??

Author Message

François Xavier Lacroix

Thursday 08 September 2005 7:32:48 am

question : is it possible to suppress ezpublish object from a template ?
i m sure there is an operator to kill any object of the back office....
:(

Gabriel Ambuehl

Thursday 08 September 2005 9:11:32 am

Suppress like what? Like not display or like delete it entirely?

Visit http://triligon.org

François Xavier Lacroix

Thursday 15 September 2005 12:49:32 am

yes not for the interface
i would like to delete it entirely ...

François Xavier Lacroix

Monday 03 October 2005 3:48:05 am

well,
i suppose it is not possible
except if
i make a special fetch, to a special module, in where i should include a class with my object, and find a method wich should delete it...
it should be hard... :(

Łukasz Serwatka

Monday 03 October 2005 4:03:59 am

Is not enought to remove object using content/remove module without storing it in trash (form with one button "remove" and hidden fields)?

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

Frederik Holljen

Monday 03 October 2005 4:09:06 am

François,

There are no function/operators manipulating the database currently. The main reason for this is that you don't really know when templates are run because of caching and most importantly because it encourages moving business logic into the templates.

François Xavier Lacroix

Monday 03 October 2005 5:44:13 am

thank you for your answer,
i will try to find a "special" solution...

eZ debug

Timing: Jan 30 2025 21:36:34
Script start
Timing: Jan 30 2025 21:36:34
Module start 'content'
Timing: Jan 30 2025 21:36:34
Module end 'content'
Timing: Jan 30 2025 21:36:34
Script end

Main resources:

Total runtime0.3357 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.9453370.2969
Module start 'content' 0.00740.0142 958.24221,005.5000
Module end 'content' 0.02170.3140 1,963.74223,893.5859
Script end 0.3357  5,857.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00491.4692200.0002
Check MTime0.00150.4358200.0001
Mysql Total
Database connection0.00100.287110.0010
Mysqli_queries0.235069.99791410.0017
Looping result0.00160.48861390.0000
Template Total0.313793.410.3137
Template load0.00080.239510.0008
Template processing0.312893.178510.3128
Override
Cache load0.00060.177510.0006
Sytem overhead
Fetch class attribute can translate value0.00190.561710.0019
XML
Image XML parsing0.00020.070010.0002
General
dbfile0.00842.4990200.0004
String conversion0.00000.001230.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