- Issue created by @SirClickALot
- 🇵🇹Portugal introfini
I’ve created this module "Group Entity Reference Filter", and it might help: https://www.drupal.org/project/group_entity_reference_filte →
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
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.
What I would be most grateful for is some guidance on:
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.
group_action
are the way to go?Group
and ECA
?Many thanks if you've got this far down!
Active
3.0
Code
I’ve created this module "Group Entity Reference Filter", and it might help: https://www.drupal.org/project/group_entity_reference_filte →