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

Tagged: "velocity"

Parsing a JSON String using Jquery and Velocity

Author: Dotcms | Created: May 09, 2012

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.

Getting all the content objects on a page

Created: Jun 25, 2014

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.

Using AND and OR to pull content by Categories

Author: Dotcms | Created: May 23, 2012

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

Using Velocity as a REST Endpont

Created: Aug 13, 2018

In the course of business, it is inevitable that you might require a custom REST endpoint that delivers content in a particular format or even to deliver...