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

Author: "David Higginbotham"

How to Copy a Contentlet using Velocity

Author: David Higginbotham | Created: Nov 12, 2012

This example shows how to use the ContentletAPI to find a Contentlet by a given inode and then copy it.

Get the logged in user and see if they have a role

Author: David Higginbotham | Created: Feb 15, 2012

This code will retrieve the user id of the logged in user. It will then check to see if the user has the Cms Administrator role. I used this logic with...