Wednesday 06 February 2008 1:20:52 pm
Not sure if that's what you need, but what you get in the templates with: {$node.data_map.file.content.filepath}
where $node contains an object with 'file' attribute of ezbinaryfile type, I found in the PHP with: $contentObjectID = 158;
$fileAttributeIdentifier = 'file';
$fileContentObject = eZContentObject::fetch( $contentObjectID );
$fileContentObject->fetchDataMap();
$fileAttributeObject = $fileContentObject->DataMap[$fileContentObject->CurrentVersion][$fileContentObject->CurrentLanguage][$fileAttributeIdentifier];
$fileAttributeObject->content();
$fileObject = $fileAttributeObject->Content;
$filePath = $fileObject->filePath();
If there's a better/quicker method - I'd be grateful for comments.
--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu
|