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

Author: "Jonathan Laughlin"

Combine multiple structure sources into the same content pull

Author: Jonathan Laughlin | Created: Apr 14, 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 23, 2015

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

Disable Structure Fields in Back-end UI

Author: Jonathan Laughlin | Created: Jun 10, 2012

This javascript, when placed into a custom field, will disable fields listed in the array fieldsToDisable. making them uneditable by back-end UI users.

Template Audit

Author: Jonathan Laughlin | Created: Mar 05, 2012

Lists live/working templates in alpha order and which live/working html pages are using them