eZOE related objects

Author Message

Gwenal Le Bihan

Tuesday 13 April 2010 9:09:50 am

Hello,

I've recently upgraded a website to eZ4.2 and i've upgraded the ezoe editor. I used to have the beta version before..

And th upload function used to work differently (one template and now it's three) and there a slight differnt behovior i get, let's pretend i edit an article that has 10 related files to it. When I click on insert object, it says it has no related content to it (objects).But i'd like him to list my 10 files..

I've checked the code and it's seems the content type is set to objects so it's normal i have no results but how can i gently (without hacking) have a list of my related files.

It seems the javascript is able to manage a content type but how can i change that link properly?

Hope I was clear..

Thx

Gwenal

André R.

Wednesday 14 April 2010 1:36:11 am

In the template, override it and make it loop the $related_contentobjects instead of $grouped_related_contentobjects.objects.

PS: And if you haven't already, make sure you apply the extension/ezoe/update/database/5.0/dbupdate-5.0.0-to-5.0.1.sql too fix data consistency bug caused by ezoe < 5.0.1.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Gwenal Le Bihan

Wednesday 14 April 2010 2:19:25 am

ok, i'll do that!

thank you for the answer

Gwenal

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 02:20:57
Script start
Timing: Jan 18 2025 02:20:57
Module start 'layout'
Timing: Jan 18 2025 02:20:57
Module start 'content'
Timing: Jan 18 2025 02:20:58
Module end 'content'
Timing: Jan 18 2025 02:20:58
Script end

Main resources:

Total runtime0.4716 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.8906152.6094
Module start 'layout' 0.00510.0023 740.500039.4141
Module start 'content' 0.00730.4626 779.9141531.6172
Module end 'content' 0.47000.0016 1,311.531312.3438
Script end 0.4716  1,323.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.6844160.0002
Check MTime0.00140.2998160.0001
Mysql Total
Database connection0.00080.160110.0008
Mysqli_queries0.427390.6033570.0075
Looping result0.00050.1040550.0000
Template Total0.447794.920.2239
Template load0.00200.427920.0010
Template processing0.445794.508320.2228
Template load and register function0.00020.035810.0002
states
state_id_array0.00080.159910.0008
state_identifier_array0.00070.145520.0003
Override
Cache load0.00170.3626190.0001
Sytem overhead
Fetch class attribute can translate value0.00040.085020.0002
Fetch class attribute name0.00170.360740.0004
XML
Image XML parsing0.00070.150320.0004
class_abstraction
Instantiating content class attribute0.00000.005740.0000
General
dbfile0.00080.1768170.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs