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

Author: "Jason Smith"

Multiple loops in a container

Author: Jason Smith |

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 |

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 |

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...