As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#assign recherche = companyhome.childrenByLuceneSearch[ta_requete]> <#assign compteur = 0> <#list recherche as child> <#if compteur = 10> <#break> </#if> … <#assign compteur = compteur + 1> </#list>
require_once('Alfresco/Service/Repository.php'); require_once('Alfresco/Service/Session.php'); require_once('Alfresco/Service/SpacesStore.php'); require_once('Examples/config.php'); $currentTitre = null; $currentAuteur = null; if (isset($_SESSION) == false) { session_start(); } if (isset($_REQUEST['titre']) == true) {$currentTitre = $_REQUEST['titre']; } if (isset($_REQUEST['auteur']) == true) {$currentAuteur = $_REQUEST['auteur']; } // Start the Alfresco session $repository = new Repository($repositoryUrl); $ticket = $repository->authenticate($userName, $password); $session = $repository->createSession($ticket); $store = new SpacesStore($session); $nodes = null; if ($currentTitre != null || $currentAuteur != null) { $recherche = 'ASPECT:"ce:documentation"'; if ( $currentTitre != null ) {$recherche.=' AND @cm\:title:"'.$currentTitre.'"';} if ( $currentAuteur != null ) {$recherche.=' AND @cm\:author:"'.$currentAuteur.'"';} $nodes = $session->query($store, $recherche); }
'.$document->cm_title.'
<#list node_list[page_boundaries?first..page_boundaries?last] as node>
ou la même chose dans une autre API…