eZ Community » Forums » Developer » empty content of...
expandshrink

empty content of eZContentObjectAttribute

empty content of eZContentObjectAttribute

Friday 09 May 2008 5:10:57 pm - 1 reply

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.

Wednesday 07 April 2010 12:54:11 pm

Use this :

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from