Default folder for related images

Author Message

Kjell Knudsen

Wednesday 17 December 2003 7:58:20 am

Hi,

Talking to Jo Henrik last week it sounded like this was an easy task. But I can find anything either when I search the site, nor in the image.ini and site.ini files.

Would like to set so that the image files I upload as related objects are not automatically stored in the root content folder. Rather the root media folder ... or maybe later even some other folder.

-kjell

Kjell Knudsen
http://www.icbl.org

Gunnstein Lye

Wednesday 17 December 2003 9:12:44 am

See DefaultAssignment in content.ini

Kjell Knudsen

Thursday 18 December 2003 5:41:23 am

Thanks.

I was able to put in

ClassSpecificAssignment[]=image;43

And it places it in the media root folder. But when I try to fill in the ID of a node under there again it always fails and the folder needs to be given manually by the user. Seems like I'm not able to find the correct ID for the folder. How does one do that in the media folder? Since it's all with the easy URLs?

Also, when the location is not set all the time the user has to say that it should be the main category in order to publish.
That should be by default. If only one placement is given it should default to being the main one.

thanks

-kjell

Kjell Knudsen
http://www.icbl.org

Kjell Knudsen

Thursday 18 December 2003 5:52:57 am

ok - found the correct ID for the subfolder by viewing the media folder in normal view. But that's a littlebit troublesome isn't it? Think it would be better to have the IDs displayed by default in the Admin template.

-kjell

Kjell Knudsen
http://www.icbl.org

hannes petursson

Thursday 16 September 2004 4:24:33 pm

how did you view the media folder in normal view. I'm having the same problem I cant see the node id of the images folder in media.

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

Main resources:

Total runtime0.0165 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.0052 587.9375152.6250
Module start 'layout' 0.00520.0030 740.562539.4453
Module start 'content' 0.00820.0062 780.007893.3359
Module end 'content' 0.01440.0020 873.343834.3047
Script end 0.0164  907.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.7016140.0002
Check MTime0.00116.8722140.0001
Mysql Total
Database connection0.00074.089010.0007
Mysqli_queries0.002515.092130.0008
Looping result0.00000.079410.0000
Template Total0.00169.710.0016
Template load0.00095.228610.0009
Template processing0.00074.477510.0007
Override
Cache load0.00063.350910.0006
General
dbfile0.00148.713880.0002
String conversion0.00000.053440.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