Recent Submissions

dotCMS-inspector version 2.x

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

Usage: Must be run as root...

dotCMS-Inspector version 3.x

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

Usage: Must be run as root...

Combine multiple structure sources into the same content pull

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

Check if key/value field has content

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

Multi-lingual Navigation

Here is an example of how to do multi-lingual navigation using the navtool. You need to have your language keys set up and then make each page title...

TinyMCE for 2.5.7 and 3.X

This is the plugin for a 2.5.7 or 3.x instance to extended the WYSIWYG.

Bash Installation Script for dotCMS

This bash script will automatically download and install dotCMS. It was made to work, and tested on CentOS 7. This is not intended to be used on production...

Set Language by Site or Folder

dotCMS supports a robust set of multi-lingual features that can be used anywhere on sites served by dotcms by passing a url parameter -

com.dotmarketing...

One liner for generating OSGi fragment export

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

Internationalized URL Title code

The default url-title.vtl is ASCII-only:  any characters that are not letters of the English alphabet (or a digit or a hyphen) are discarded. ...

Navigation Macro based on dotCMS' navTool viewtool

This macro extends the functionality provided by dotCMS' navTool viewtool.

It is based on folders and will allow you to set a starting point...

Log Configuration Portlet

The Logging Portlet allows a CMS Administrator in dotCMS to dynamically set logging levels of classes and packages at runtime that are known to the ...

Upgrade to the latest Tomcat 6

The Dotcms 2.x distro is running a bit behind the latest apache tomcat 6 version and while Dotcms does not think that will cause any specific problem...

Show different WYSIWYG options based on Role

It is easy to show different WYSIWYG options based on a users role.  All you need to do is to write a plugin that overrides the file:

/dotCMS/html/portlet/ext/contentlet/field/tiny...

Ace Editor Custom Field

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

This code example...

Getting all the content objects on a page

We have been asked repeatedly how to get a list of all the content objects that have been placed on a page by a content...

Create a "Parse VTL" Widget Structure

This example allows you to execute the code in vtl files by simply browsing for them and saving a piece of widget content.

Tired of having to...

Script to Remotely Deploy OSGI jar

This is a bash script that will allow you to remotely deploy an OSGi plugin via the command line.  This is helpful when developing remotely

Image gallery that works with file assets and documents

The default version of image-gallery.vtl that comes with dotCMS only works with image files of type Document.  If a folder contains image files...