related objects in an article

Author Message

Ovanes Markarian

Tuesday 22 April 2008 1:05:32 pm

Hello *,

I would like to specify related objects for an article. In the release 4.0 which I run with plain site package I can associate an image as related object. But I can not associated a list of related objects. Is there no other way as to make a custom article class?

Many Thanks,
Ovanes

Łukasz Serwatka

Tuesday 22 April 2008 11:31:11 pm

Hi,

You can add new attribute to your content class. In admin go to Setup->Classes

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Maxime Thomas

Tuesday 22 April 2008 11:32:07 pm

When you are talking about related objects, are you talking about attributes or relations ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Ovanes Markarian

Wednesday 23 April 2008 12:31:03 am

To be honest, I do not exactly understand your question. I talk about attribute of a class which allows me to specify additional relations or type ezobjectrelation.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/object_relation

With Kind Regards,
Ovanes

Piotrek Karaś

Wednesday 23 April 2008 6:50:32 am

Maybe you haven't noticed that, but there are two independent datatypes for that: object relation (singular) and object relations (plural). I believe the latter one is what you're looking for:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/object_relations
Hope this is it.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 16:09:26
Script start
Timing: Jan 18 2025 16:09:26
Module start 'layout'
Timing: Jan 18 2025 16:09:26
Module start 'content'
Timing: Jan 18 2025 16:09:27
Module end 'content'
Timing: Jan 18 2025 16:09:27
Script end

Main resources:

Total runtime1.1189 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00580.0030 740.539139.4453
Module start 'content' 0.00871.1077 779.9844647.6719
Module end 'content' 1.11640.0024 1,427.656312.1641
Script end 1.1188  1,439.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3072160.0002
Check MTime0.00130.1176160.0001
Mysql Total
Database connection0.00080.067710.0008
Mysqli_queries1.061194.8306670.0158
Looping result0.00070.0669650.0000
Template Total1.086097.120.5430
Template load0.00280.250820.0014
Template processing1.083296.809920.5416
Template load and register function0.00020.016310.0002
states
state_id_array0.00090.078010.0009
state_identifier_array0.00120.111520.0006
Override
Cache load0.00220.1941240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.083740.0002
Fetch class attribute name0.00180.161480.0002
XML
Image XML parsing0.00190.171040.0005
class_abstraction
Instantiating content class attribute0.00000.001480.0000
General
dbfile0.00110.0941310.0000
String conversion0.00000.000740.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs