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.