How to put images in a spesific folder?

Author Message

Robin Sørlie

Thursday 19 June 2003 3:47:18 am

Hi, all

When editing an article, and adding a picture/file etc... in related objects, the picture goes in the root folder. It makes it a bit messy and hard to find the folders and stuff (have to browse several pages). Is it possible to for instance make a folder "Images" in root and assign all new images to go into that folder?

Bård Farstad

Thursday 19 June 2003 3:51:34 am

You can configure this in content.ini:

[RelationAssignmentSettings]
# Default assignment for new related objects, possible values are
# - A Node ID - Place all new objects under this node
# - root - The root of the tree
# - users - The root of the user tree
# - none - Do not place anywhere, the user must then fix the assignment before publishing
# Multiple assignments are separated with commas.
DefaultAssignment=2
# Overrides for specific classes.
#
# Each entry is a list of comma separated values, the first is the match
# and the second is the assignment (see above for values)
#
# Classes are either specified with identifier, ID or group_ID
# The items are searched in order so the first to match will be used,
# this means that class IDs should come before class group IDs.
ClassSpecificAssignment[]
ClassSpecificAssignment[]=user,user_group;users
#ClassSpecificAssignment[]=image;33,37;37

--bård

Documentation: http://ez.no/doc

Robin Sørlie

Thursday 19 June 2003 5:06:17 am

Works like a charm, thx.

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

Main resources:

Total runtime0.0217 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.2500151.2266
Module start 'layout' 0.00430.0037 739.4766220.7188
Module start 'content' 0.00800.0123 960.1953997.8047
Module end 'content' 0.02030.0013 1,958.000033.9922
Script end 0.0217  1,991.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.4673140.0002
Check MTime0.00114.9660140.0001
Mysql Total
Database connection0.00052.365910.0005
Mysqli_queries0.00209.135030.0007
Looping result0.00000.046210.0000
Template Total0.00104.510.0010
Template load0.00073.407110.0007
Template processing0.00021.092810.0002
Override
Cache load0.00052.416510.0005
General
dbfile0.00146.412880.0002
String conversion0.00000.036340.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