Simple mobile detection and redirection in dotCMS, taken from:
Just a quick Example of a Twitter4J viewtool.
The home page for one of our sites was loading a lot of content into various containers, much of which was created on the fly by vtl's. As a result...
Tag cloud by Structure and Categories
We recently have been trying to find components (widgets/parsed vtls/containers) that are taking too long to load and could use optimization. One potential...
The code below can be used to add a category by key to a contentlet when calling the checkin method.
Simple mobile detection and redirection in dotCMS
This is a very simple bash script that demonstrates how one can use the timemachine functionality built into dotCMS to maintain a static copy of your...
The following code can be used to add a Password field to a content structure, including a Form.
Take the following steps to add a Password /...
A working copy of a JSON fetch from the Google Calendar API.
This code is an example of how you can get the host id that a content editor is on, and based on that host ID it will show or hide a tab in the content...
This builds on the codeshare Stephen Bell provided for using a custom field with a select. This uses a multi-select and reads back in multiple values...
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...
The following code can be used on your site to list all the attributes and values stored in the Request object. It's wrapped with a condition to only...
Sometimes you want to display related content listed and classified by category in a multilingual environment.
This is a very straightforward demonstration JSP that will transactionally checking a FileAsset content using the 2.2 starter site content schema.  ...
Use this example to create dynamic parent/child category listings. The category listings can then become clickable listings to filter content ...
Replacement for NavigationWebAPI.java in 2.2 branch (works for 2.5 too). Handles problem (if its a problem for you) where internal links are not relative...
There are times where you might want to add a dynamic variable to the end of a file to help browsers repull the file after changes have been made to...
This example shows how to use the ContentletAPI to find a Contentlet by a given inode and then copy it. Other methods from the ContentletAPI can also...