Allow disable/enable tagging per group bundle

Created on 23 July 2024, 9 months ago
Updated 27 August 2024, 7 months ago

Problem/Motivation

Now we can allow or disallow tagging for all groups, but there may be cases where we need to disable tagging per group bundle, similar to nodes.

Proposed resolution

Modify the the getKeyValueOptions() function:

     // For groups there is only one option as well.
      if (empty($item) || $entity_type == 'group') {

- delete condition by group, to return keys for group bundles, similar to nodes.
Also, update

/**
 * Implements hook_social_tagging_type_alter().
 */
function social_group_flexible_group_social_tagging_type_alter(array &$items): void {
  $items['group']['sets'][0]['bundles'][] = 'flexible_group';
  $items['group']['sets'][0]['group'] = 'additional_details';
  $items['group']['sets'][0]['label'] = t('Tags');
}

to allow adding multiple group types, similar to nodes.

✨ Feature request
Status

Fixed

Version

13.0

Component

Tagging

Created by

πŸ‡ΊπŸ‡¦Ukraine r_cheh

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

Comments & Activities

Production build 0.71.5 2024