empty content of eZContentObjectAttribute

Author Message

Fabien Scantamburlo

Friday 09 May 2008 8:10:57 am

Hi,

I'm writing my own template operator.

My problem is all <i>eZContentObjectAttribute->content</i> is empty

my code ($node is an ezContentTreeNode):

$paths = $node->attribute("path");
$site = $paths[3];
$siteObject = eZContentObject::fetch($site->ContentObjectID);
$siteDataMap = $siteObject->fetchDataMap();
$domain = $siteDataMap["url"]->Content;

Here, $domain is empty...

Thanks,

Fab.

Fabien Scantamburlo

Wednesday 07 April 2010 3:54:11 am

Use this :

$domain = $siteDataMap["url"]->toString();

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

Main resources:

Total runtime0.0182 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1641152.6406
Module start 'layout' 0.00570.0030 741.804739.4766
Module start 'content' 0.00860.0075 781.281389.3984
Module end 'content' 0.01610.0021 870.679730.3047
Script end 0.0182  900.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.5253140.0002
Check MTime0.00116.1601140.0001
Mysql Total
Database connection0.00042.357910.0004
Mysqli_queries0.002614.143630.0009
Looping result0.00000.104610.0000
Template Total0.00158.410.0015
Template load0.00084.187810.0008
Template processing0.00084.210010.0008
Override
Cache load0.00053.010110.0005
General
dbfile0.002614.246980.0003
String conversion0.00000.048440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs