- Documentation topics on: .

Recent Submissions

FileAsset Creation using the ContentletAPI

This is a very straightforward demonstration JSP that will transactionally checking a FileAsset content using the 2.2 starter site content schema.  ...

Pull Nested Child Categories by Parent Category Key

Use this example to create dynamic parent/child category listings.  The category listings can then become clickable listings to filter content ...

Internal Navigation link fix-option

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

Dynamic File Cachebuster Variables

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

How to Copy a Contentlet using Velocity

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

Conditionalized Structure Fields

This javascript code can be used in a custom field as an example of making fields (in this case "Featured Start" and "Featured End") visible conditionally...

simple mailer with encoding (charset) support

update for the included mailer ViewTool, allowing user to set character encoding, allowing accented and foreign characters in html mail.

fully...

Getting the page context values

This will echo out all the Velocity variables set in the given page's context.

Creating a List of Maps and adding to Session

This codeshare shows how to create a List of Maps of Strings, and to "set" and "get" the List on an attribute in the HTTP Session.

How to Display Content Type's Fields

On this example we will show how to use Velocity to display the values for each type of field on a content type.

We created a new structure and...

Bash Script to Copy and Index Using the Restful API

I've needed to do this from time to time, either for an upgrade, or to sync up a live system with a development system.  In the script below you...

1.9 Orphaned htmlpage SQL

I know 1.9 is quickly becoming obsolete, and that 2.0 really solves the whole orphaned file issue.  However, from time-to-time ...

Running dotCMS Behind Reverse-proxy Web Server

This document explains how to set up dotCMS to run behind a reverse proxy web server. There are a multitude of reason why you might want to do this:...

dotCMS Install - Mac OS X and MySQL

This is a step by step guide to installing dotCMS on OSX using MySQL as your DB. 

Installing dotcms on Mac OS X with mysql

...

Using the Widget API

Since dotCMS 2.1 we provide an API to render a Widget based on its identifier.

This example shows how to use the api to pull a Widget from another...

Pulling a list of content into a custom field

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

Get Categories from Widget Selection- with And/Or selector

This "buildCatQuery" will pull the categories from an array (typically passed by a widget).  Part of the widget also includes a field for And|Or...

RESTful Image Processing

The dotCMS 1.9 series introduced the online image editor - a great tool for content editors to manipulate uploaded images.  But almost important...

Loop through numbered fields

If you have multiple fields or groups of fields that are similar (i.e. "Image 1," "Image 1 Caption," "Image 2," "Image 2 Caption"), you should write...

Checkin Content from HashMap - Transactional

This is a very straightforward demonstration JSP that will transactionally checkin 10 pieces of "News" content using the 2.1 starter site content schema...