Configure AI content suggestion settings for different entity types
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3574169. --> Reported by: [punamshelke](https://www.drupal.org/user/3509619) Related to !1486 !1213 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>AI suggestions automatically apply to all content types, taxonomies, and blocks after installation.<br> Site admins cannot choose where to show or hide these suggestions, which can make pages messy.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>Install and configure the AI Content module.</li> <li>Navigate to the content creation form for any content type taxonomies and blocks.</li> <li>Notice that AI content suggestion capabilities are available by default.</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Creates separate configuration sections for content types, taxonomies, and blocks</li> <li>Includes a helper function to check if AI suggestions are enabled for a specific entity</li> <li>Uses the configuration in the form alter hook to show/hide AI suggestions</li> <li>Ensure backward compatibility: if no selection is made, default to current behavior (i.e., enabled for all content types).</li> <li>Currently it support only for block content and taxonomies but in future this can easily extendable for other content type - this provision is already added </li> </ul> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p> TBD</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>A new multi-select list or checkbox field under the module settings page admin/config/ai/suggestions, to choose which entity type and content types should have AI content suggestions enabled.</p> <p>this ticket is closed but not added in AI content suggestions - <a href="https://www.drupal.org/project/ai/issues/3528302">https://www.drupal.org/project/ai/issues/3528302</a></p> > Related issue: [Issue #3584512](https://www.drupal.org/node/3584512) > Related issue: [Issue #3528302](https://www.drupal.org/node/3528302)
issue