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

Tagged: "custom fields"

Pull a dropdown list (select) of other content into a custom field

Author: Stephen Bell | Created: Jan 15, 2013

Use this code in a custom field, to pull a list of other content into a select field. This code uses the jQuery Javascript library in a way that shouldn't...

Password Custom Field

Author: Dotcms | Created: Feb 19, 2013

The following code can be used to add a Password field to a content structure, including a Form.

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.

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.

Ace Editor Custom Field

Author: dotcms | Created: Jul 03, 2014

The Ace text editor is an online code editor written in JavaScript. It matches the features and performance of native editors.

Topics

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

Share your code Become a Contributor