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

Author: "Nathan I. Keiter"

Custom Field: Linking to different Content

Author: Daniel Patterson | Created: Dec 11, 2019

A custom field that pops a browser and allows you to select and style a link.

Configuring Tomcat with HTTP2 - a dotCMS example

Author: dotCMS | Created: Jul 25, 2018

dotCMS 5.0 ships with Tomcat 8.5 which supports the HTTP2 protocol. HTTP2 is a modern version of HTTP that can combine multiple requests into a single...

Quartz Errors

Author: dotCMS | Created: Aug 12, 2017

If you are seeing errors like this after an upgrade, it means that quartz has serialized an object to the database in its job store that has changed between...

Workaround for maximum 25 data types

Author: Nollymar Longa | Created: May 11, 2017

The idea is to create additional fields using a custom field and save their values as a JSON object into the custom field.

Creating a multi domain letsencrypt cert for dotcms on AWS Linux

Created: Feb 17, 2017

The script below outlines how to generate and use a letsencrypt cert with dotCMS running from tomcat on AWS linux

dotCMS-inspector version 2.x

Created: Jun 25, 2015

This is a simple tool to gather information about a running dotcms instance. This only works with dotcms 2.x releases

dotCMS-Inspector version 3.x

Author: Matt Yarbrough | Created: May 20, 2015

This is a simple tool to gather information about a running dotcms instance. This only works with dotcms 3.0 plus.

Combine multiple structure sources into the same content pull

Author: Jonathan Laughlin | Created: Apr 15, 2015

We have multiple news outlets on campus that ended up being created in different structures. When we wanted to syndicate these news sources onto one page...

Check if key/value field has content

Author: Jonathan Laughlin | Created: Feb 24, 2015

This should be thought of as the equivalent of $UtilMethods.isSet. Unfortunately, that method always returns true for key/value pairs.

One liner for generating OSGi fragment export

Author: dotCMS | Created: Oct 29, 2014

When developing an OSGI plugin, you often (always) need to generate an OSGi fragment which takes the place of manually having to change the osgi-exports...