About edit/remove object

Author Message

Pascal France

Wednesday 14 April 2010 2:03:51 pm

Hi,

I want the owner of objects can edit and/or remove them.

To display the Edit and Remove buttoms I had a look in the forum_topic.tpl default template.
This template does not contain any cache-blok section.

In my case, I have to put this line:

{set-block scope=global variable=cache_ttl}0{/set-block}

at the top of my template. If not, the result of this template is cached of course.

What trick is used in the management of the forum to avoid this line?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 14 April 2010 2:52:00 pm

...

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Friday 16 April 2010 1:08:12 am

Good morning Pascal,

I can mention a working solution : this forum :)

All forum pages are subject to view caching, as well as front-end caching (Varnish). this means that any personalized action element (buttons, "Hello <name>" type of things) must work around the two cache layers. We achieve this using Ajax/Javascript. This allows for having very good load-time performances on the forum pages, and opens for personalized actions.

Hope this helps !
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 18:39:53
Script start
Timing: Jan 18 2025 18:39:53
Module start 'layout'
Timing: Jan 18 2025 18:39:53
Module start 'content'
Timing: Jan 18 2025 18:39:54
Module end 'content'
Timing: Jan 18 2025 18:39:54
Script end

Main resources:

Total runtime0.7665 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9375152.6250
Module start 'layout' 0.00820.0054 740.562539.4453
Module start 'content' 0.01360.7516 780.0078535.3594
Module end 'content' 0.76510.0014 1,315.367212.1641
Script end 0.7665  1,327.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4814160.0002
Check MTime0.00150.2022160.0001
Mysql Total
Database connection0.00160.209610.0016
Mysqli_queries0.714393.1881570.0125
Looping result0.00060.0735550.0000
Template Total0.701091.520.3505
Template load0.00210.268120.0010
Template processing0.698991.181320.3495
Template load and register function0.00020.032510.0002
states
state_id_array0.00590.767610.0059
state_identifier_array0.00090.122420.0005
Override
Cache load0.00170.2270210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.113420.0004
Fetch class attribute name0.00110.147840.0003
XML
Image XML parsing0.00070.090020.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00090.1221160.0001
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs