Showing content version history for anonymous users...

Author Message

Dariusz Wlodarczyk

Sunday 26 October 2003 2:24:36 pm

How I can show version history of content (product, article or something else) to anonymous users.

Please step by step because I'm totaly newbie in ezPublish :)

Tore Skobba

Tuesday 28 October 2003 7:11:18 am

Sorry but step by step to such a general question is gonna take ages.. However, in your template displaying the content insert this:

Version {$node.object.current_version}

For a start insert it into design/your_desing/templates/page_topbox.tpl and see what happens (might have to clear cache at admin/setup)

cheers
Tore

Ouff, sorry, saw that I answered another question now:(.. You need to do some iteration on the $node.object. variables.. Small tip could be to chech out the template which is invoked when admin clicks manage in the default edit template.

Dariusz Wlodarczyk

Tuesday 28 October 2003 8:46:19 am

Thanks a lot, I look at this :)

Paul Forsyth

Tuesday 28 October 2003 8:54:19 am

You could also look at the template code the admin site uses to show versions. Its located at:

design/standard/templates/content/view/versionview.tpl

If you ever manage version of an object in the admin this template is used to show those versions.

paul

Dariusz Wlodarczyk

Wednesday 29 October 2003 6:48:13 am

I look at the admin interface and based on this I made my own template to view content version history. But I have another problem - permissions to view this history. Rights to versionread function in content module for anonymous user not working :(

So my question is: what permissions I must set to permit not logged user viewing version history ?

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 31 2025 08:10:11
Script start
Timing: Jan 31 2025 08:10:11
Module start 'layout'
Timing: Jan 31 2025 08:10:11
Module start 'content'
Timing: Jan 31 2025 08:10:11
Module end 'content'
Timing: Jan 31 2025 08:10:11
Script end

Main resources:

Total runtime0.0152 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.3750151.2422
Module start 'layout' 0.00590.0022 739.617236.6953
Module start 'content' 0.00810.0054 776.312594.1719
Module end 'content' 0.01350.0017 870.484433.9922
Script end 0.0152  904.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.1384140.0002
Check MTime0.00117.0000140.0001
Mysql Total
Database connection0.00128.029310.0012
Mysqli_queries0.002415.646530.0008
Looping result0.00000.065810.0000
Template Total0.00117.510.0011
Template load0.00095.743510.0009
Template processing0.00031.668510.0003
Override
Cache load0.00063.764710.0006
General
dbfile0.00106.880980.0001
String conversion0.00000.032940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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