cancel
Showing results for 
Search instead for 
Did you mean: 

Repository Access VIA PHP library

sguillemette
Champ in-the-making
Champ in-the-making
Hi,

I am not able to access all directory (store) that I created with the ALfresco Community Portal VIA  the PHP library. In the directory Company Home, I created a directory  named bis and when I try to access it as follows:

-  $nodes = $session->query($spacesStore, "PATH:\"//app:company_home/app:bis\"");

The variable $nodes is empty.

But when I try to access a directory inside the Company Home like  Projects
-  $nodes = $session->query($spacesStore, "PATH:\"//app:company_home/appSmiley Tonguerojects\"");
Everything is ok.

N.B: Everything is done with the user admin

Regards
Steph
1 REPLY 1

sguillemette
Champ in-the-making
Champ in-the-making
Ok, I found how. We must use the keyword cm: instead of app:…

$nodes = $session->query($spacesStore, "PATH:\"//app:company_home/cm:bis\"");

Steph