Closed (fixed)
Project:
Flag Lists
Version:
4.0.0-rc2
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Jan 2022 at 13:25 UTC
Updated:
31 May 2023 at 09:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sl27257The support that is there is what you "get for free" so to speak plus some very minor additions like a specific field for a Bulk Form for Flagging collections. That might be what you are after? But I see that the API has change d from Drupal 8 to Drupal 9 and that need to be fixed...
Can you try to describe a little more in detail what you are trying to achieve, please?
Comment #3
sl27257Comment #4
sorson commentedI try to get a list of the "flagging collections" that a user has created. The same list (flag_list_flag) that is currently displayed on a node page.
I want to let the user add a content item to a list, by clicking on a flag link.
I've now implemented a work around by creating a "View mode" with only the flag list and a custom twig template. I add that rendered entity in views with the specific "View mode" selected. This shouldn't be needed, if there was just a Views field for it.
Comment #5
sl27257That sounds like a "Bulk Form" to me. Maybe it is time for a documentation page on how to create a Bulk Form in views...
The fix due to the API change is on its way!
Comment #6
sl27257This is the patch that is needed to fix the API update from Drupal 8 to Drupal 9. There is also a fix which is related to #3257955: Error: Call to a member function isSyncing() on null in flag_lists_actions_flagging_collection_presave() (line 71 of modules/contrib/flag_lists/modules/flag_lists_actions/flag_lists_actions.module). due to that there are other changes which I have not found the origin of as well.
To use this "Bulk form" you create a view of the node (entities) you want to be able to add to a Flagging Collection. I propose to select a "Table" view. To this you add a field of type "Flagging Collection operations". That should be it. Of course you can add other fields as needed.
Comment #8
sorson commentedThanks for your help and quick response. I really appreciate the hard work you've put in this great module.
The patch seems to work fine but my problem is not with the "Bulk update" view. ( I can create successfully a "Flagging" view with the "Bulk update" field etc.)
What I'm trying to achieve is to get a relationship between a "Content" view and "Flagging". This seems to be missing for Flag lists:
It is possible to add a "Flagging Collection operations" field (without any required other relationship) but this is a bulk action. I need to display separate flag/unflag list links for each title.
This field would make a lot things more easy and the whole system more flexible. I also don't think it is a good idea to interweave "flag collection" to things like "Content type" displays. This is not scalable if a lot of users create a lot of lists. This will crash probably the Manage display admin UI. Letting Views take care of this makes it much more scalable where users can decide what to display on Content types.
Comment #9
sl27257OK, thank you for your nice comments and the clarification!
Let me look into it!
/Thomas
Comment #10
sl27257I am sorry but I still do not understand what you want.
This is what a sample of a bulkview can look like. To me it has all things you are asking for?
Comment #11
sl27257Now there is also a help page available.
Bulk view Flagging Collection help page
Comment #12
sl27257