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

Tagged: "velocity tools"

Comparing Dates in Velocity

Author: Dotcms | Created: May 03, 2012

This code sample will help you learn different ways to obtain todays date and format it. It also shows how you can compare two dates, or one content date...

Creating, accessing and deleting Cookies using Velocity CookieTool

Author: Dotcms | Created: May 11, 2012

Velocity provides a viewtool to create, access and delete cookies. The tool is called: CookieTool and can be used on a widget by calling: org.apache.velocity...

Topics

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

Share your code Become a Contributor