Wednesday 29 December 2010 12:49:04 am
Hi there, I have a problem with a little piece of code :
$content = eZContentObjectTreeNode::fetchByURLPath( $chemin_reel ) ; For the following content tree : Root
`- Annonces
|- Un dossier
| `- Une annonce 1
|- Un autre dossier
| |- Une annonce 2
| `- Une annonce 3
`- Une annonce
I want to get the folders : "Annonces", "Annonce/Un dossier" and "Annonces/Un autre dossier".
When I fetch with $chemin_reel = 'Annonces'; it works. Bit if I want to fetch with $chemin_reel = 'Annonces/Un-dossier'; (wich is the name in the URL in administration panel), it doesn't work. I don't understand why the first node return the correct object and why the others nodes don't. Could someone explain me ? Thanks Damien
|