Hints for Document Type Fields

Overview

You can provide hints for individual fields in a document type. When a hint is configured, the field label in the Document Editor displays an information icon. Hovering over this icon shows a tooltip with the hint text. Use hints to explain the field’s purpose, usage, or limitations.

Document editor field with hint tooltip beside title label

Configuring Hints

To add a hint to a field:

  1. Open the CMS Document Type Editor.

  2. Select the document type you want to modify.

  3. Enter Edit mode.

  4. Select the field where you want to add a hint.

  5. In the right-hand column, locate the Hint text area.

  6. Enter your hint text.

  7. Save and commit your changes.

The hint icon appears in the Document Editor after you save and commit.

Document type editor showing highlighted Hint field properties panel

Internationalization

You can localize hint text for multiple languages. To configure translations, use the CMS console as described in Add Internationalization (i18n) to Document Types.

Supporting Hints in Custom Editor Fields

Hints are available for all standard document field types. If you create custom field types, you can add hint support using the provided Wicket panel.

To display a hint in your custom field plug-in:

  1. In your HTML snippet, add the following at the desired location:
<wicket:container wicket:id="hint-panel"/>
  1. In your Java class, add:
import org.hippoecm.frontend.editor.plugins.fieldhint.FieldHint; [...] add(new FieldHint("hint-panel", helper.getHintModel(this)));

The FieldHint panel manages hint display in the Document Editor. This example assumes your custom editor extends AbstractFieldPlugin, which provides a helper object with utility functions. If your editor does not extend this class, refer to the following method to load translations:

org.hippoecm.frontend.editor.plugins.field.FieldPluginHelper#getHintModel

Internationalization for custom field hints follows the same process described in Add Internationalization (i18n) to Document Types.

Currently, you cannot specify hints for custom field types through the Document Type Editor UI. To implement this functionality, review the implementation for standard field types:

org.hippoecm.frontend.editor.plugins.field.FieldPluginEditor.html
org.hippoecm.frontend.editor.plugins.field.FieldPluginEditor.java

Look for references to hint-editor in these files.

Share Feedback
Page: /build/document-types/hints-for-your-document-type-fields
Section: Build
Category *
Hints for your document type fields | Bloomreach Content Documentation