Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 06 February 2008 3:43:50 am - 2 replies
Piotrek KaraĆ
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
Daniele Nocentini
Thursday 07 February 2008 1:15:30 am
Thanks Piotrek, this is the exact code that I need.
Antica Bottega Digitale srl http://www.abd.it
You must be logged in to post messages in this topic!