Related objects

Author Message

Alan Sparkes

Friday 10 October 2003 3:04:54 pm

I have added related objects to a corporate 'about' page. But these related objects dont show up on the user page demo.
Are they supposed to? If not then how are related objects shown???

alans-

David Syers

Monday 13 October 2003 10:05:45 am

Hi there alans

How have you setup the related objects in the about page? Did you just browse for related objects, or did you also copy the

<object id='xx' />

code which appears next to the object into the XML field? If you didn't then it will not show up.

As default the object will show up as a link, but you can control how they are displayed by modifying:

template/content/view/embed.tpl

Also note that related objects only work through the XML field.

Alan Sparkes

Monday 13 October 2003 11:41:34 am

Since I posted on Saturday I have come on considerably!

Thanks for the pointers. I did copy the id code for the object to get a link at the bottom but the embed template is what I am looking for. I also found doing a general search on the site and forums produced really useful info and I was able to target my questions and get answers rather than reading thru the tons of documents. I have found EZPublish really intimidating in th past but as I am longer in the tooth I am ready to wrestle with it a bit more now.

Scary theme code though - extremely off putting for the non-programming users.....

Oh and I am not sue I understand "Also note that related objects only work through the XML field."

What does that mean?

cheers
alans

Paul Borgermans

Monday 13 October 2003 12:34:42 pm

Related objects *do work* outside xml attributes, you can bring them to the surface with the current $node and look for the related objects array

Do

{$node|attribute(show,2)} to find them

-paul

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

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:02:07
Script start
Timing: Jan 18 2025 16:02:07
Module start 'layout'
Timing: Jan 18 2025 16:02:07
Module start 'content'
Timing: Jan 18 2025 16:02:08
Module end 'content'
Timing: Jan 18 2025 16:02:08
Script end

Main resources:

Total runtime0.7142 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.7813152.6094
Module start 'layout' 0.00510.0021 740.390639.3984
Module start 'content' 0.00720.7057 779.7891576.2734
Module end 'content' 0.71280.0013 1,356.062512.2031
Script end 0.7142  1,368.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4020160.0002
Check MTime0.00120.1653160.0001
Mysql Total
Database connection0.00070.092410.0007
Mysqli_queries0.664793.0712620.0107
Looping result0.00090.1247600.0000
Template Total0.689996.620.3450
Template load0.00190.266720.0010
Template processing0.688096.332420.3440
Template load and register function0.00020.023010.0002
states
state_id_array0.00070.101810.0007
state_identifier_array0.00060.088820.0003
Override
Cache load0.00160.2218280.0001
Sytem overhead
Fetch class attribute can translate value0.00040.059130.0001
Fetch class attribute name0.00130.183050.0003
XML
Image XML parsing0.00060.089830.0002
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00070.0936170.0000
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs