Extracing Data From Section

Author Message

Daniel Guerrier

Monday 11 July 2005 10:41:58 am

I have a general question about sections.
I understand that you use sections for permission and access control to specific nodes. However, how would you extract data from specidic sections? For instance, if I had a large amount of videos that I would like to keep in one media folder but also assign them to a certain section, how would I restrict a fetch to certain video sections. I guess I could create sub folders but I want the choice of fetching all videos or just a sub-section of the videos.

Mikael Johansson

Tuesday 12 July 2005 12:20:12 am

First you create a role that gives access to the video folder (content/read probably). Then you assign this role to a user, with limitation to the section you want.

You'll find the "Assign with limitaion" button at the bottom of the Role view in the administration interface.

It is also possibe to do this with template programming (if you want), but that adds the complexity a little bit.

Mikael Johansson, Sweden

Eivind Marienborg

Tuesday 12 July 2005 12:24:53 am

About putting them in different folders:

You can still fetch all videos, by using the depth-paramter in your fetch.

So, this allows you to fetch all videos, or videos from one or multiple folders.

Setting up sections based on folders is also more efficient than setting up single-file sections, I suppose (if that's at all possible?).

My 2 cents in. Good luck :)

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

Main resources:

Total runtime0.6569 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.3438152.6250
Module start 'layout' 0.00800.0031 741.968839.4453
Module start 'content' 0.01110.6442 781.4141562.4063
Module end 'content' 0.65530.0015 1,343.820312.1641
Script end 0.6568  1,355.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5532160.0002
Check MTime0.00140.2129160.0001
Mysql Total
Database connection0.00080.127910.0008
Mysqli_queries0.611093.0173590.0104
Looping result0.00060.0863570.0000
Template Total0.624495.120.3122
Template load0.00220.333420.0011
Template processing0.622294.722420.3111
Template load and register function0.00020.033810.0002
states
state_id_array0.00160.251110.0016
state_identifier_array0.00090.131720.0004
Override
Cache load0.00190.2957160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.083830.0002
Fetch class attribute name0.00110.163940.0003
XML
Image XML parsing0.00080.119430.0003
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00080.1256160.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs