Restric access to certain folders

Author Message

Ted Striker

Thursday 01 April 2004 3:55:06 am

Hello there,

I'm developing a news site which will have both sections (with folders assigned) and subsections within them (with their own subfolders assigned). Up to this, everything goes just fine, I can represent with a loop a menu with the section and subsection structure.

Problem is that some of this folders should have a lock symbol to represent that the content inside is for registered users and others could be free accessed. Then, and when clicked, the conent inside every folder will show depending on the permissions of the user.

Is there anyway to assing a category or attribute to a folder to classify it as viewable or restricted and retrieve that info will looping all existing folders/subfolders?

Thanks!!!!!!!

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

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 19 2025 01:08:53
Script start
Timing: Jan 19 2025 01:08:53
Module start 'layout'
Timing: Jan 19 2025 01:08:53
Module start 'content'
Timing: Jan 19 2025 01:08:53
Module end 'content'
Timing: Jan 19 2025 01:08:53
Script end

Main resources:

Total runtime0.6527 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 590.3125152.6250
Module start 'layout' 0.00520.0028 742.937539.4453
Module start 'content' 0.00800.6432 782.3828465.0703
Module end 'content' 0.65120.0014 1,247.45318.1563
Script end 0.6526  1,255.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5069160.0002
Check MTime0.00140.2123160.0001
Mysql Total
Database connection0.00080.118010.0008
Mysqli_queries0.613193.9406460.0133
Looping result0.00040.0637440.0000
Template Total0.620895.120.3104
Template load0.00200.309720.0010
Template processing0.618794.801920.3094
Template load and register function0.00010.014010.0001
states
state_id_array0.00120.177910.0012
state_identifier_array0.00100.156920.0005
Override
Cache load0.00150.234790.0002
Sytem overhead
Fetch class attribute can translate value0.00060.092210.0006
Fetch class attribute name0.00090.135120.0004
XML
Image XML parsing0.00050.074010.0005
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00080.1165160.0000
String conversion0.00000.001240.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs