Forums / Developer / empty content of eZContentObjectAttribute

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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();