Forums / Setup & design / Restricting access to the full view

Restricting access to the full view

Author Message

Nicolas OTTAVI

Monday 16 October 2006 1:47:39 am

Hi there,

As you may know, a lot of publication on line, can allow access to some articles to its registered users. But it is frequent that the general public have access to an excerpt of such a content (like in newspaper websites for instance).

It seems that eZ Publish does not allow restriction on views (which in this case of usage is damage), so my question is simple: how would you do (the simplest way for the editors) to achieve this functionality ?

Best Regards

Xavier Dutoit

Monday 16 October 2006 2:08:16 am

Where you display the teaser, force the system not to take into account the real access rights.

That's the limitation parameter in the fetch (give it an empty array and it's happy to display everything).

Then, when you click, you got the regular access rights, ie they have to log in.

X+

http://www.sydesy.com

Nicolas OTTAVI

Monday 16 October 2006 5:04:46 am

Thanks for your answer Xavier,

Am I wrong when I say this is only available for "list" fetching and not "tree" ?

Regards,
C.

Claudia Kosny

Monday 16 October 2006 8:05:47 am

Hi Claude

Just try it out...
As far as I know (I think Kristof mentioned this somewhere) the list and tree operators use the same php functions, just with different default values for the parameters, so specifying an limitation array should work for both list and tree fetching.

Greetings from Luxembourg

Claudia

Kristof Coomans

Tuesday 17 October 2006 12:13:01 am

You're right Claudia. For the curious ones, take a look in kernel/content/function_definition.php and search for $FunctionList['list'] and $FunctionList['tree']. The same story for list_count and tree_count.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nicolas OTTAVI

Tuesday 17 October 2006 1:54:34 am

Yes,

It is what I was thinking. Now I do have the same "issue" on the search fetching function ... But I know where to look at ...

And I confirm that the limitation also work for the search fetch function ... That's nice

Thx,
C.

eZ debug

Timing: Jan 30 2025 19:32:24
Script start
Timing: Jan 30 2025 19:32:24
Module start 'content'
Timing: Jan 30 2025 19:32:24
Module end 'content'
Timing: Jan 30 2025 19:32:24
Script end

Main resources:

Total runtime0.3508 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.0100 588.0313370.2891
Module start 'content' 0.01000.0140 958.32031,005.5313
Module end 'content' 0.02390.3268 1,963.85163,893.8672
Script end 0.3507  5,857.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.3200200.0002
Check MTime0.00140.3933200.0001
Mysql Total
Database connection0.00080.227510.0008
Mysqli_queries0.243869.48531410.0017
Looping result0.00160.46471390.0000
Template Total0.326493.010.3264
Template load0.00100.277010.0010
Template processing0.325492.744310.3254
Override
Cache load0.00070.196710.0007
Sytem overhead
Fetch class attribute can translate value0.00190.537410.0019
XML
Image XML parsing0.00030.079010.0003
General
dbfile0.00932.6479200.0005
String conversion0.00000.001430.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