MODX Snippet Development I

This is the first in a series of articles about snippet design and impMODX logorovement. In the series, I’d like to walk you through the process of creation and enhancement of a simple snippet. The articles are mainly aimed at people first getting their feet wet with PHP, but even if you’re not a beginner, you might find something of value here.

When I create a utility extra, it usually starts out as a very modest little snippet that meets my exact needs. Later, when I start thinking about how other people might use the snippet, I add features that make the snippet more powerful, more flexible, more efficient, and more user-friendly. I thought it might be interesting to look at the steps in that process with an example snippet. Learn More

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

How To Publish A Page On WordPress

Pages are different from blog posts in that they are static pages outside the flow of chronologically organized posts. Pages often form the main navigation to sections of your site that tend not to change. These can be as basic as an About Us page or a Contact Page or it could include a whole series of articles and sub-pages that reside off of higher order pages within your site navigation structure. Writing a page in the WordPress editor is similar to writing a post. After clicking the Page tab, click on the Add New link to begin writing a new page, or the All Pages link to view and manage your current list of pages. Learn More

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

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