Dashboard Document Wizard Plugin Value Injection

Overview

You can inject values from the Dashboard Document Wizard dialog into new documents created in Bloomreach Content. This allows you to prefill document fields with values entered by users in the wizard dialog.

How Value Injection Works

When you create a new document in the CMS, the system uses queries defined in the repository. You can view these queries in the Console at:

/hippo:configuration/hippo:queries/hippo:templates

By default, the new-document query is used to create new documents. You can override this by setting the query property in your shortcut configuration. For details on configuring the wizard, see the configuration page.

The wizard dialog collects values from the user, such as a date or a list selection. You can inject these values into the new document by modifying the creation query.

Injecting Values Using Variables in the Creation Query

Queries for creating new documents often include a multivalued String property named hippostd:modify. This property defines which fields to set when the document is created.

To inject a value:

  • Add two consecutive values to the hippostd:modify property:
    • The first value is the field name, prefixed with ./. For example, use ./myproject:publicationdate for the myproject:publicationdate field.
    • The second value is the variable name that holds the value from the wizard dialog.

The available variables depend on the classification type of the plugin:

Classification typeVariable
date$date
list$list

Example: Injecting a Date Value

1. Configure a Custom Query

Define a shortcut in the CMS dashboard and set its query property to use a custom query.

CMS dashboard shortcuts tree with query property for new document shortcut

For example, the shortcut at /hippo:configuration/hippo:frontend/cms/cms-dashshortcuts/new-news-document specifies a custom query.

2. Map the Field and Variable in the Query

Edit the query to add the appropriate values to the hippostd:modify property.

Property editor showing hippostd:modify mappings including date variable

In this example, add:

  • ./myproject:publicationdate
  • $date

This maps the value entered in the wizard's date field to the myproject:publicationdate field in the new document.

3. Create the Document and Verify Value Injection

  1. Click the dashboard shortcut to open the wizard dialog.

  2. Enter a name and select a date.

    New news document dialog with highlighted date and time fields

  3. Complete the wizard. The date you entered is injected into the new document.

    Document editor with prefilled date and time fields

Summary

To inject values from the Dashboard Document Wizard dialog into new documents:

  • Use a custom query and set the query property in your shortcut configuration.
  • In the query, add field-variable pairs to the hippostd:modify property.
  • Use the appropriate variable for your classification type ($date or $list).
  • When users create a document through the wizard, their input is automatically injected into the corresponding document fields.
Share Feedback
Page: /build/plugins/dashboard-document-wizard/value-injection
Section: Build
Category *