Forums / General / Media Library Folder visibility

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

eZ debug

Timing: Jan 29 2025 13:30:56
Script start
Timing: Jan 29 2025 13:30:56
Module start 'content'
Timing: Jan 29 2025 13:30:56
Module end 'content'
Timing: Jan 29 2025 13:30:56
Script end

Main resources:

Total runtime0.2416 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9219180.8516
Module start 'content' 0.00580.0073 768.7734102.4453
Module end 'content' 0.01310.2284 871.2188529.8828
Script end 0.2415  1,401.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00311.2752200.0002
Check MTime0.00120.5132200.0001
Mysql Total
Database connection0.00080.322810.0008
Mysqli_queries0.192879.80971410.0014
Looping result0.00120.50851390.0000
Template Total0.228094.410.2280
Template load0.00080.332410.0008
Template processing0.227294.049010.2272
Override
Cache load0.00060.239710.0006
Sytem overhead
Fetch class attribute can translate value0.00070.277310.0007
XML
Image XML parsing0.00030.110910.0003
General
dbfile0.01174.8521200.0006
String conversion0.00000.002130.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.0002 secs