Wednesday 26 January 2011 8:00:52 am
Hi, i am importing images into ezpublish and i want not to import images twice, so i want to check first if they are already there. The images are saved in Media/Images/Imported and have names like myimage.jpg If i just open the url http://mysite/Media/Images/Imported/myimage.jpg with the browser, the image is shown (in the layout though) If i try to get the image with $obj=eZContentObjectTreeNode::fetchByURLPath('Media/Images/Imported/myimage.jpg') i get NULL I also read here in the forum, that fetchByURLPath uses path_identification_string from table ezcontentobject_tree, i checked the database and it has values like media/images/imported/myimage_jpg ... and i tried to use this string with fetchByURLPath, still getting NULL How can i fetch image objects?
|