irtam-modules/custom_group

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:drupal-module

dev-main 2023-05-04 08:05 UTC

This package is auto-updated.

Last update: 2024-11-04 11:27:22 UTC


README

Drupal Logo

Introduction

This module has the purpose of synchronizing two modules, namely the updated version of the group module and the domain group module. It comprises four significant elements:

  • The first component is a file called "GroupIdFromUrl.php", which contains a default argument for group contextual filter.
  • The second component is "GroupTitle.php", which includes an exposed group filter that allows for the group input box to be changed to a select list.
  • The third component "GroupService.php", provides several useful features related to groups, including the ability to retrieve the active group, get the group domain, and obtain related groups.
  • The fourth component "DomainGroupSettingsForm.php", Enable the ability to assign a default image for every content type within a specific group.

Default Argument

This Argument allow the retrieval of the ID of the active group from the present domain name.

Views filter

By using this custom filter, you can transform the input text into a selection list. Remember to activate the filter within the "hook_views_data_alter()" function.

Group Service

This service contains several useful methods for interacting with both groups and nodes.

  • getActiveGroup : This method enables the retrieval of the active group from the current host
  • getGroupDomain : This method enables the retrieval of domain name using the group id
  • getRelatedGroups : This method enables the retrieval of related groups to given node
  • getFirstRelatedGroupLabel : This method enables the retrieval of the first related groups label

Domain Group setting

This feature provides the ability to add a new tab to the group edit page, which allows customization of default content type images for each group Path "/group/{group}/Gdomain-settings"

If you have any questions, please feel free to contact me via email at ahmed.matri@sesame.com.tn