Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Tagged: "velocity"

Using AND and OR to pull content by Categories

Author: Dotcms |

When pulling content by categories sometimes you need to match categories using an AND, or an OR or sometimes a combination of both.

Getting all the content objects on a page

We have been asked repeatedly how to get a list of all the content objects that have been placed on a page by a content editor.

Parsing a JSON String using Jquery and Velocity

Author: Dotcms |

If you have a field on a content type that stores a JSON string, you can parse the string using a combination of Velocity and JQuery.