eZ Community » Forums » Developer » API to get the contentobject...
expandshrink

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

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

Friday 04 December 2009 3:26:06 pm - 1 reply

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.

Tuesday 08 December 2009 10: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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from