Configure component generation

Generate page components with the AI Accelerator module.

Activation

To activate the feature:

  1. Go to the <light-module-folder>/<light-module-name>/decorations/pages-app/apps/pages-app.yaml file in your project.

  2. Ensure that you have the following in the file:

    <light-module-folder>/<light-module-name>/decorations/pages-app/apps/pages-app.yaml
    subApps:
      detail:
        actions:
          generateComponent: (1)
            label: Generate component
            $type: openDialogAction
            icon: icon-add-item
            dialogId: ai-accelerator-ui:generateComponent
            populate: false
            availability:
              rules:
                addible:
                  class: info.magnolia.pages.app.detail.action.availability.IsAreaAddibleRuleDefinition
          generateComponentWithSelectedComponent: (2)
            label: Generate component
            $type: openDialogAction
            icon: icon-add-item
            dialogId: ai-accelerator-ui:generateComponentWithSelectedComponent
            populate: false
        actionbar:
          sections:
            areaActions:
              groups:
                addingActions:
                  items:
                    - name: generateComponent
                edit:
                  items:
                    - name: generateComponentWithSelectedComponent
    1 Generate components.
    2 Generate components with selected component.
Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the AI Accelerator module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules