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)








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 15:06:30
Script start
Timing: Jan 18 2025 15:06:30
Module start 'layout'
Timing: Jan 18 2025 15:06:30
Module start 'content'
Timing: Jan 18 2025 15:06:32
Module end 'content'
Timing: Jan 18 2025 15:06:32
Script end

Main resources:

Total runtime1.4094 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1797152.6406
Module start 'layout' 0.00610.0033 741.820339.4766
Module start 'content' 0.00941.3983 781.2969527.4453
Module end 'content' 1.40770.0016 1,308.742212.1250
Script end 1.4093  1,320.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2175160.0002
Check MTime0.00130.0912160.0001
Mysql Total
Database connection0.00060.045110.0006
Mysqli_queries1.363196.7172540.0252
Looping result0.00060.0418520.0000
Template Total1.361796.620.6808
Template load0.00180.125620.0009
Template processing1.359996.487620.6799
Template load and register function0.00030.024510.0003
states
state_id_array0.00180.128810.0018
state_identifier_array0.00250.176920.0012
Override
Cache load0.00150.1043170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040520.0003
Fetch class attribute name0.00200.144030.0007
XML
Image XML parsing0.00190.135720.0010
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00210.1507150.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs