API to get the contentobject attribute id by passing content object id

Author Message

Neelima Amancherla

Friday 04 December 2009 6:26:06 am

We are facing problems with the way eZ Publish stores files/foldername in the ezcontentobject_tree,ezcontentobject,ezbinaryfile and ezcontentobject_name tables.
All the spaces in the file/folder names are getting replaced with underscores in the above mentioned tables.
If we want to retrieve folder/file name and to display its original name on the eng site, its quite impossible to handle this from DB.
And the original folder names are not stored in any of the above mentioned tables.
Are there any inbuilt API in eZ Publish to retrieve the original file and folder names.Or is there any other alternate approach to retrieve from DB.

Ɓukasz Serwatka

Tuesday 08 December 2009 1:18:36 am

Hi,

There are few possibilities to get such data. You can start by looking on the eZContentObject class as well as on eZContentObjectAttribute class. Both reside under kernel/classes folder.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.