Related Objects Set To Section 0

Author Message

Kenneth Colwell

Saturday 10 July 2004 4:58:02 pm

Hi,

If I go to the media tab and upload a file the file is correctly set to section 3. If I upload a file as an "Related Object" to an article then the file is set to section 0. Does anyone have any hints as to how I can solve this problem?

ezpub version 3.4.1 (3.4.1)

Thanks,
Ken Colwell

Paul Borgermans

Monday 12 July 2004 12:50:46 pm

Ken,

take a look at the settings in [RelationAssignmentSettings] in content.ini

You may store them in a correct node-tree, and then they will inherit the correct section. If not, these files remain "nodeless" and also without a section assigned (unless you give them a correct node placement in the edit screen). Or are you using the objectrelationlist datatype?

Correct me if I'm wrong ....

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kenneth Colwell

Monday 12 July 2004 1:50:58 pm

Hi Paul,

This is what I've got in my 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;2876
ClassSpecificAssignment[]=file;2877

Do I have something wrong?

Thanks,
Ken Colwell

Kenneth Colwell

Monday 12 July 2004 1:52:45 pm

I've also put information here: http://www.ez.no/community/bug_reports/related_object_added_to_article_set_to_section_0

Thanks again,
Ken Colwell

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 19:36:14
Script start
Timing: Jan 18 2025 19:36:14
Module start 'layout'
Timing: Jan 18 2025 19:36:14
Module start 'content'
Timing: Jan 18 2025 19:36:15
Module end 'content'
Timing: Jan 18 2025 19:36:15
Script end

Main resources:

Total runtime0.9270 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9219152.6250
Module start 'layout' 0.00500.0023 740.546939.4453
Module start 'content' 0.00730.9184 779.9922546.9922
Module end 'content' 0.92580.0012 1,326.984412.1563
Script end 0.9270  1,339.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3191160.0002
Check MTime0.00120.1311160.0001
Mysql Total
Database connection0.00070.078210.0007
Mysqli_queries0.883795.3280600.0147
Looping result0.00050.0510580.0000
Template Total0.903197.420.4516
Template load0.00190.208720.0010
Template processing0.901297.213820.4506
Template load and register function0.00020.021110.0002
states
state_id_array0.00070.080510.0007
state_identifier_array0.00090.093020.0004
Override
Cache load0.00160.1728260.0001
Sytem overhead
Fetch class attribute can translate value0.00040.044920.0002
Fetch class attribute name0.00120.127250.0002
XML
Image XML parsing0.00050.056420.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00070.0770170.0000
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs