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

Author: "Jason Tesser"

Multiple loops in a container

Author: Jason Smith | Created: Sep 13, 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.

simple mailer with encoding (charset) support

Author: Ati Rosselet | Created: Oct 24, 2012

update for the included mailer ViewTool, allowing user to set character encoding, allowing accented and foreign characters in html mail.

Pulling a list of content into a custom field

Author: Jason Smith | Created: Aug 29, 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 24, 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...