How to limit read access to summary ?

Author Message

Davide Garzetti

Tuesday 09 February 2010 10:16:32 am

I need to set-up a web site where anyone can read the summary of an article but for read the full article login is required. Had somebody encounterd this issue ?

Thanks.

Bruce Morrison

Wednesday 10 February 2010 1:18:41 am

Hi

You can modify the templates where the summary is displayed so that the fetch ignores any limitations applied to the current user using the limitation parameter with an empty array.

See: http://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 30 2025 21:22:35
Script start
Timing: Jan 30 2025 21:22:35
Module start 'layout'
Timing: Jan 30 2025 21:22:35
Module start 'content'
Timing: Jan 30 2025 21:22:35
Module end 'content'
Timing: Jan 30 2025 21:22:35
Script end

Main resources:

Total runtime0.0400 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1328151.2109
Module start 'layout' 0.00740.0082 739.3438220.7031
Module start 'content' 0.01550.0224 960.0469997.9609
Module end 'content' 0.03800.0020 1,958.007829.9922
Script end 0.0400  1,988.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00287.0104140.0002
Check MTime0.00112.6831140.0001
Mysql Total
Database connection0.00092.188710.0009
Mysqli_queries0.007518.774630.0025
Looping result0.00000.042310.0000
Template Total0.00143.510.0014
Template load0.00112.793910.0011
Template processing0.00030.639810.0003
Override
Cache load0.00061.598910.0006
General
dbfile0.004210.377480.0005
String conversion0.00000.017940.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