Forums / Setup & design / How to put images in a spesific folder?

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.

eZ debug

Timing: Jan 18 2025 11:04:35
Script start
Timing: Jan 18 2025 11:04:35
Module start 'content'
Timing: Jan 18 2025 11:04:36
Module end 'content'
Timing: Jan 18 2025 11:04:36
Script end

Main resources:

Total runtime0.9268 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.9453180.8281
Module start 'content' 0.00750.7664 769.7734537.5078
Module end 'content' 0.77380.1529 1,307.2813332.7578
Script end 0.9267  1,640.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4809210.0002
Check MTime0.00160.1765210.0001
Mysql Total
Database connection0.00140.149810.0014
Mysqli_queries0.846891.36191940.0044
Looping result0.00230.25091920.0000
Template Total0.893696.420.4468
Template load0.00240.261520.0012
Template processing0.891196.149720.4456
Template load and register function0.00030.029510.0003
states
state_id_array0.00150.158310.0015
state_identifier_array0.00230.251720.0012
Override
Cache load0.00210.2269300.0001
Sytem overhead
Fetch class attribute can translate value0.00110.118630.0004
Fetch class attribute name0.00240.257040.0006
XML
Image XML parsing0.00090.097830.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00580.6308280.0002
String conversion0.00000.000830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs