Unable to take control of form layout without coding

Created on 13 March 2023, almost 2 years ago

Problem/Motivation

I am trying to work my way around using Group (3.0.0-rx2) and I keep running into issues which appear to me to be related to 'hard-coding'. Please afford me the opportunity to go through a particular scenario in order for me to explain my understanding/expectations.

I would really appreciate some more detailed guidance as to how best to achieve what I am trying to do here from an expert on this module.

I am perfectly capable of writing modules, tweaking theme templates, and even using tools such as ECA but I'm just note sure whether I might have missed something obvious and don't in fact need to do any of that stuff ;-)

What I am sure about is that of my mission to create this educational Drupal solution with as I possibly can in order to keep it accessible to non-coders

What I have tried

Firstly, I have cloned the group_nodes view in order to customise it.

My clone view uses the path my-group/%group/material

I notice that when I visit that page, unlike the group_nodes view, I don't see the two 'assignment' buttons ...

This suggest the action links (surfaced in the Primary admin actions block) are somehow hard-coded to the original route: group/%group/nodes.

As a workaround I have used the Header area to add them myself using [tokens] to pick up what I need and this has also allowed me to customise the button text which I think will be a very common desire to those using the module...

All good so far, while I'm sure I'd love to have done all that through the UI, I get it that we can't have everything!

However, the page that I am then taken to is where I think we really do need to be able to do some serious customising / minimising in order to make is a friendly as possible to my fellow teachers.

In my example, I only have a single Content type that my teachers can associate with a Group so my button (above) jumps us straight to here...

As you will gather, there are a few bits there I don't want to see there (I do realise that The URL alias-related bits will probably be hidden away via permissions) but I definitely want to to alter the title, alter the node-search input label and apply (say) Chosen or Select 2 to it.

Lastly I would want to add my own explanatory text.

I summary

What I would be most grateful for is some guidance on:

  • Whether I have completely misunderstood the level of flexibility that I should expect given that the stated goal of

    One of Group's goals is to be as user-friendly as possible: configuring scenarios involving per-group behaviour, access permissions, subgroups, ... should all be possible through the administration interface, without the need for any custom code.

  • Which approach is best, i.e. form-altering via a custom module or might there be templates in future releases that I can get my hands on?
  • Whether extension modules such as group_action are the way to go?
  • Whether I should be delving deeper into the relationship between Group and ECA?

Many thanks if you've got this far down!

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom SirClickALot Somerset

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

Comments & Activities

Production build 0.71.5 2024