Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.
/ dotTools Public archive

dotCMS Content/Velocity Devleoper Utilities

Notifications You must be signed in to change notification settings

x0rsw1tch/dotTools

Repository files navigation

dotTools Utilities (Beta)

dotTools is a back-end UI for performing various utility functions in dotCMS.

Getting Started

Prerequisites

  • Have dotCMS extracted and appropriate config and root folder Plugins directories ready to go

      See dotCMS installation guide for information on how to set this up.

Compatibility

Feature 3 4 5
Velocity Console ✔️ ✔️ ✔️
Content Manager ✔️ ✔️ ✔️
Content Import ✔️ ✔️ ✔️
Content Export ✔️ ✔️ ✔️
Content Type Import ✔️ ✔️
Content Type Export ✔️ ✔️
API Interactor ✔️ ✔️ ✔️

Please Note: dotTools for dotCMS 3 has only been tested with 3.7.2. Earlier versions may not work properly

Installation

  1. Extract Tarball to (dotCMS 5):

    • plugins/com.dotcms.config/ROOT/dotserver/tomcat-8.5.32/webapps/ROOT/dottools

    or for v3.x, 4.x

    • plugins/com.dotcms.config/ROOT/dotserver/tomcat-8.0.18/webapps/ROOT/dottools

Example:

From dotCMS Root: mkdir -p plugins/com.dotcms.config/ROOT/dotserver/tomcat-8.5.32/webapps/ROOT/dottools Then: tar -zxvf dottools.tar.gz -C plugins/com.dotcms.config/ROOT/dotserver/tomcat-8.5.32/webapps/ROOT/dottools

You may substitute dottools for another directory name.


What's Included

  • dotCMS Velocity console: Test and run Velocity Scripts in real-time
  • Content Manager: Apply mass workflow statuses to contentlets, prune contentlet inodes, and get contentlet JSON data
  • Contentlet Export/Import: Import and export contentlets with JSON, XML, CSV, or HTML Table
  • Content Type (Structure) Import/Export: Easily Transfer Content Types between instances, without the need for Bundles/Push Publishing
  • API Interactor: Work with dotCMS/Spring or other HTTP API's from within the UI

How to Use

To utilize the capabilities of the included tools, check out the indiviudal sections below.

Pro Tip: Add ?nologin to skip authentication. Items requiring authentication will not function.

Console

Dot Tools Console

Allows you to run Velocity code and get results on the fly. This is very useful for testing, generating scripts, or prototyping.

Console Options

Option Function
Pre Use Pre-formatted output
HTML Use HTML output
Vel Evaluate Velocity Code
Live Live Update
Log Log each submitted entry

Pro Tip: Use Ctrl+Enter to "Run"

History

Shows a history of each code submitted

Useful things

Snippets and misc things Velocity

Content Manager

Provide a Lucene Query and a list of contentlets will appear. There are two functions that can occur from here:

Dot Tools Manager List

  1. Get contentlet JSON data by clicking on the contentlet title

Dot Tools Manager JSON

  1. Select one or more contentlets to apply workflow actions, or prune old inodes

Pro Tip: Since dotCMS 5 creates new inodes after applying workflow actions, be sure to refresh the list if applying another action.

Dot Tools Manager Actions

Content Import

Provide an Array of objects to import contentlets, or fill out input fields for quick importing.

Dot Tools Content Import

Content Export

Allows for exporting dotCMS contentlets in various formats. The fields to be exported can be deselected.

Export Formats:

JSON
cURL commands
XML
CSV
HTML Table

Dot Tools Content Export

Structure (CT) Export

Select a Content Type to export. In the results box you will get JSON Object with the following structure:

{
	structure: {
		...
	},
	fields: [
		{
			...Field Object...
		}
	]
}

Structure (CT) Import

Provide a JSON object in the format described above. Required properties are listed in the dotCMS documentation:

The Content Type will be created first, followed by each individual field.

Create Content Type

Create Field

API Interactor

Dot Tools API Interactor

Supply the appropriate parameters and click go, you will be taken to a results window to see the response.

Dot Tools API Interactor

About

dotCMS Content/Velocity Devleoper Utilities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published