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.