Path Query in Alfresco

In previous two posts we had discussed about significance of query in content management system, different types of queries supported by Alfresco, XPath Query in detail, ISO encoding of filename during XPath query creation.

In this article, I am going to introduce you to one more type of query supported by Alfresco that is Lucene Path Queries. This is similar to XPath query but it has many advantages over XPath query. So, let us explore that.

Syntax:

PATH:”/<NameSpacePrefixResolver>:<FolderName>/<NameSpacePrefixResolver>:<ChildFolderName>//.”

This query always start with “PATH” key word and then drill down path of particular folder under which we want to search the documents. The path to a node is the trail of QNames of the child relationships to get to the node.

Example:

For Instance if we want to navigate to following folder structure through our query we can create Path Query as follow.

To find all nodes at any depth below “Following Email Templates” including that folder

PATH:”/app:company_home/app:dictionary/app:email_templates/app:following//.”

Learn More

Tags: , , , | Posted under Alfresco | Leave a comment

Drupal7: Recipe to save Webform2PDF pdfs to server directory

David G - DrupalProblem:

A website blew up on me (I think due to human error). This site was built quickly in ~2 weeks and uses the Webform module to collect academic references for incoming students for research programs. While the site was built quickly, I do use for example the Backup and Migrate module to routinely backup the website at least daily. But, the site got hosed, and there were 150+ webform submissions which I did not know if the client had successfully used Webform2PDF default PDF mechanism to archive all the submissions to PDF… I wanted to generate every single webform submission as a PDF and store it on the server, and email the client all these PDFs as insurance while we triage the site problems and possibly reset the webapp to an initial known state. Read on to see how I save all webform submissions as PDFs using contributed modules to automate the process.

Learn More

Tags: , , , | Posted under Drupal | Leave a comment

How to stop registering guest sessions in Clip-Bucket v2.6

Maintaining a fast Clip-Bucket powered website when you are getting more and more traffic can be a challenging task most of the time. Today I will show you a simple trick that will speed up your website and reduce the database usage and size quite a bit. You will learn how to stop recording guest sessions in v2.6.

Learn More

Tags: , , , , , , , | Posted under ClipBucket | 1 Comment