Forums / Developer / Where to set "insert object" automatic location?

Where to set "insert object" automatic location?

Author Message

Oliver Frommel

Thursday 25 September 2008 3:04:52 am

Hello there,

when you add an object in the online editor a small window pops up where you can choose to add an existing object or upload a new one. After you click on "Upload New" a new form appears where you can choose from a dropdown called "Location" where the first entry is "Automatic". My question is, where can I configure that default location for a certain site access? We obviously didn't and now everything gets dropped into the site access root which obviously is not what we want.

Thanks
Oliver

Dirk Lampe

Tuesday 21 October 2008 7:33:04 am

Hello Oliver,

look at

http://ez.no/de/developer/forum/suggestions/uploaded_object_default_location

and

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/content_ini/relationassignmentsettings/defaultassignment

[RelationAssignmentSettings]
# Default assignment for new related objects, possible values are
# - A Node ID - Place all new objects under this node
# - A node path - The placement of the parent node by a path, e.g. media/files
# - root - The root of the tree
# - users - The root of the user tree
# - media - The root of the media tree
# - none - DEPRECATED
# 
# Multiple assignments are not allowed.
DefaultAssignment=root
# Automatic assignments for specific classes.
#
# Each line consists of three or two values separated by semi-colon.
# First two values are lists of elements which are comma separated.
#
# First value is the class identifier, second is the assignment (see above for
# values). An optional third is the main node in case you upload to many
# locations. If the third parameter is not set, then the first element of
# the value 2 will be used as main node.
#
# 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.
#
# If the same class is specified in many lines, then will be used the first
# match where user has an access to all listed nodes.
#
ClassSpecificAssignment[]
ClassSpecificAssignment[]=user,user_group;users/guest_accounts
ClassSpecificAssignment[]=image;media/images
ClassSpecificAssignment[]=video;media/multimedia
ClassSpecificAssignment[]=file;media/files
ClassSpecificAssignment[]=quicktime;media/multimedia
ClassSpecificAssignment[]=windows_media;media/multimedia
ClassSpecificAssignment[]=real_video;media/multimedia
ClassSpecificAssignment[]=flash;media/multimedia
#ClassSpecificAssignment[]=image;33,37;37
#ClassSpecificAssignment[]=match;node1,node2;main_node

Good luck,
Dirk

JAC Systeme GmbH
Germany (Stralsund, Rostock, Berlin)

- CM-Systems (www.jac-systeme.de)
- Ticketsolutions (www.simpleticket.de)








eZ debug

Timing: Jan 18 2025 10:21:05
Script start
Timing: Jan 18 2025 10:21:05
Module start 'content'
Timing: Jan 18 2025 10:21:05
Module end 'content'
Timing: Jan 18 2025 10:21:05
Script end

Main resources:

Total runtime0.1788 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.0062 587.8438180.8125
Module start 'content' 0.00620.0052 768.656394.0547
Module end 'content' 0.01140.1673 862.7109522.3750
Script end 0.1787  1,385.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.8172200.0002
Check MTime0.00130.7380200.0001
Mysql Total
Database connection0.00070.406010.0007
Mysqli_queries0.130673.05211410.0009
Looping result0.00150.82741390.0000
Template Total0.167093.410.1670
Template load0.00080.444510.0008
Template processing0.166292.952410.1662
Override
Cache load0.00050.296410.0005
Sytem overhead
Fetch class attribute can translate value0.00080.454010.0008
XML
Image XML parsing0.00020.109610.0002
General
dbfile0.00432.3934200.0002
String conversion0.00000.004530.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