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

Author: "Jason Tesser"

Multiple loops in a container

Author: Jason Smith | Created: Sep 14, 2018

Create two lists from one content pull to display content in multiple sections of the HTML page. Easily place spit-out your content in multiple chucks.

Pulling a list of content into a custom field

Author: Jason Smith | Created: Aug 30, 2012

This code will pull a list of content into a custom field and create a select box for each result. Onchange it will set the value of the custom field.

Checking in content and relating it to a File as Content using dotCMS Content API

Author: Jason Tesser | Created: Jul 25, 2012

This code sample shows how to check-in content using Files as Content and a File field. The code allows to, check in a FileAsset, check in a piece of content...

Topics

Have you created code you'd like to share with the dotCMS community?

Share your code Become a Contributor