HELP... Related Objects/RelationAssignmentSettings

Author Message

Björn Dieding@xrow.de

Monday 01 September 2003 7:19:27 pm

When creating a new related object it get defined to the settings in the "RelationAssignmentSettings" from the content.ini

But how can I tell eZ publish to assign this new related object as a child (tree) to the current object created before? Without letting the user choose its destination? The configuriugn options below seem pretty static to me.

THANKS in advance

----------schnipp---------------
[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
------------ schnapp------------------

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Kai Duebbert

Friday 05 September 2003 2:12:02 am

See: http://www.ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezobjectrelation/selecting_related_objects_with_dropdown_boxes_checkboxes_etc

You would use hidden form fields instead of a dropdown box. Play with it and you'll see that it solves your problem.

Kai

Stuart Fenton

Sunday 22 February 2004 11:34:54 am

I am attempting to do the same thing. Did you get a solution in your attempts with adding hidden fields to direct the creation of new content?

Any help you could give would be greatly appreciated.

Thanks
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

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 06:08:55
Script start
Timing: Jan 31 2025 06:08:55
Module start 'layout'
Timing: Jan 31 2025 06:08:55
Module start 'content'
Timing: Jan 31 2025 06:08:56
Module end 'content'
Timing: Jan 31 2025 06:08:56
Script end

Main resources:

Total runtime1.2766 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.2656151.2266
Module start 'layout' 0.00700.0039 739.492236.6797
Module start 'content' 0.01101.2649 776.1719976.2891
Module end 'content' 1.27590.0008 1,752.460911.8125
Script end 1.2766  1,764.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2587160.0002
Check MTime0.00140.1073160.0001
Mysql Total
Database connection0.00060.048810.0006
Mysqli_queries1.218695.4506590.0207
Looping result0.00090.0679570.0000
Template Total1.230596.420.6153
Template load0.00190.149420.0010
Template processing1.228696.235720.6143
Template load and register function0.00110.086010.0011
states
state_id_array0.00210.161210.0021
state_identifier_array0.00300.231520.0015
Override
Cache load0.00160.1283380.0000
Sytem overhead
Fetch class attribute can translate value0.00100.074530.0003
Fetch class attribute name0.00250.197550.0005
XML
Image XML parsing0.00260.202930.0009
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00270.2106220.0001
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs