Media Library Folder visibility

Author Message

Dhaval Panchal

Monday 07 February 2011 5:42:38 am

Hi All,

I need one help, is it possible that we can show specific images from Media Library->Images to logged in users?

Thanks

Dhaval Panchal

Gaetano Giunta

Monday 07 February 2011 6:07:21 am

You might use two content classes for images: one which is visible and one which is not...

Principal Consultant International Business
Member of the Community Project Board

Franck Magnan

Monday 07 February 2011 12:18:54 pm

Hi Dhaval,

you can also create 2 folders with each a different section and use one to put your protected images. Then, you can modify roles to add access to the protected folder only to logged users.

--
Developer at Open Wide

Dhaval Panchal

Monday 07 February 2011 9:10:55 pm

Hi Franck & Gaetano,

That means i need to create one FOLDER in Image folder and have to assign rights to FOLDER only?

Thank you

Dhaval Panchal

Gaetano Giunta

Tuesday 08 February 2011 1:48:30 am

If you use two separate folders, you should assign the rights to read on "image class + fixed parent node"

Principal Consultant International Business
Member of the Community Project Board

Dhaval Panchal

Tuesday 08 February 2011 2:44:08 am

Ok i got this.

Thank you

Franck Magnan

Tuesday 08 February 2011 2:54:28 am

Dhaval,
if you want to use section to deal with your protected images, you must follow these steps:

  • create a "protected" folder to keep your images
  • create a section (e.g "for_logged_users_only")
  • modify your "protected" folder to assign it your new "for_logged_users_only" section
  • then, when you'll add an image to that folder, this new image will be automatically assigned to the "for_logged_users_only" section
  • modify roles to add "content->read" right for "for_logged_users_only" section to logged users

--
Developer at Open Wide

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 02:57:12
Script start
Timing: Jan 18 2025 02:57:12
Module start 'layout'
Timing: Jan 18 2025 02:57:12
Module start 'content'
Timing: Jan 18 2025 02:57:13
Module end 'content'
Timing: Jan 18 2025 02:57:13
Script end

Main resources:

Total runtime0.7567 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.0391152.6250
Module start 'layout' 0.00520.0028 741.664139.4531
Module start 'content' 0.00800.7473 781.1172631.9766
Module end 'content' 0.75530.0014 1,413.093816.1641
Script end 0.7567  1,429.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4328160.0002
Check MTime0.00130.1728160.0001
Mysql Total
Database connection0.00090.121610.0009
Mysqli_queries0.651386.0770710.0092
Looping result0.00070.0895690.0000
Template Total0.695291.920.3476
Template load0.00200.265220.0010
Template processing0.693191.599720.3466
Template load and register function0.00030.034510.0003
states
state_id_array0.00090.122510.0009
state_identifier_array0.00060.082520.0003
Override
Cache load0.00180.2353430.0000
Sytem overhead
Fetch class attribute can translate value0.00080.108430.0003
Fetch class attribute name0.00120.1536100.0001
XML
Image XML parsing0.00720.945430.0024
class_abstraction
Instantiating content class attribute0.00000.0038140.0000
General
dbfile0.04165.4956270.0015
String conversion0.00000.000940.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs