Forums / Developer / empty content of eZContentObjectAttribute
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.
Wednesday 07 April 2010 3:54:11 am
Use this :
$domain = $siteDataMap["url"]->toString();