Enable AI content suggestions only for chosen content types

Created on 4 June 2025, 29 days ago

Problem/Motivation

The AI Content Suggestions feature is enabled globally for all content types once the module is installed and configured. No configuration option allows site administrators to control or limit which content types should leverage AI content suggestions. This lack of granularity can lead to unnecessary processing, cluttered interfaces, and unintended content behavior on content types where AI suggestions are not required or appropriate.

Steps to reproduce

  • Install and configure the AI Content module.
  • Navigate to the content creation form for any content type.
  • Notice that AI content suggestion capabilities are available by default.
  • Look for a setting to enable or disable this feature on a per-content-type basis – no such setting exists.

Proposed resolution

  • Introduce a configuration setting (e.g., via admin form or module config) that allows administrators to select specific content types where AI content suggestions should be enabled.
  • Add a multi-select field listing all available content types under the module configuration page.
  • Check this configuration before rendering AI suggestion controls in the node edit form.
  • Ensure backward compatibility: if no selection is made, default to current behavior (i.e., enabled for all content types).

Remaining tasks

TBD

User interface changes

A new multi-select list or checkbox field under the module settings page admin/config/ai/suggestions, to choose which content types should have AI content suggestions enabled.

API changes

No direct API changes are expected. However, the internal rendering logic or form alter hooks may need conditional checks for the selected content types.

Data model changes

A new configuration setting (likely in config/install or stored via configFactory) to store the list of selected content types.

Feature request
Status

Active

Version

1.1

Component

Other Submodules

Created by

🇮🇳India prashant.c Dharamshala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024