File Search - Roles Policies

Author Message

John Smith

Thursday 01 November 2007 4:57:03 am

Hi There,

Just a general question which might be very simple for some guys.

If you upload files into the articles and folders with the help of online editor all the files will go into Media -> Images or Files sections.

On the public website to allow the users to download that files I have to amend roles and polices for the anonymous users.

Content read Class( File ) , Section( Media )

Then if you delete the article or folder into which you had uploaded the files, the files will still remain in the media section -> files. Which is fine, perfect, no problem.

When somebody from the public website do a search with some keywords, then I am getting the files which are not being used or not needed.

Is there any way to sort this out?

Cheers
John

Kåre Køhler Høvik

Thursday 01 November 2007 7:35:09 am

Hi

The search will return all hits which the user has access to. There's no way to remove the text file from the search result list other than to move or remove the text file.

You can however create a cronjob to do this for you. ( remove all text objects from Media->Files which does not have reverse relations to Content tree )

Best regards
Kåre

Kåre Høvik

John Smith

Thursday 01 November 2007 10:06:15 am

Is there any sort of extension already available??

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 31 2025 01:14:36
Script start
Timing: Jan 31 2025 01:14:36
Module start 'layout'
Timing: Jan 31 2025 01:14:36
Module start 'content'
Timing: Jan 31 2025 01:14:36
Module end 'content'
Timing: Jan 31 2025 01:14:36
Script end

Main resources:

Total runtime0.0224 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1250151.2109
Module start 'layout' 0.00560.0036 739.3359220.6875
Module start 'content' 0.00920.0118 960.0234997.7578
Module end 'content' 0.02110.0013 1,957.781329.9922
Script end 0.0224  1,987.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.8821140.0002
Check MTime0.00114.8209140.0001
Mysql Total
Database connection0.00083.717310.0008
Mysqli_queries0.002410.715730.0008
Looping result0.00000.058510.0000
Template Total0.00104.310.0010
Template load0.00083.513010.0008
Template processing0.00020.740710.0002
Override
Cache load0.00052.351910.0005
General
dbfile0.00114.750780.0001
String conversion0.00000.039440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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