Postponed
Project:
Form mode manager
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2016 at 10:55 UTC
Updated:
18 May 2025 at 07:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
woprrr commentedHi @minhtranite,
Yes and i suposse that is totally normal because Actually FormModeManager work nativelly with User / Node / Comment / Contact Form / Taxonomy term. And for assume that compatibility it's really hard with actual structure of module. Actually my main focus is #2834768: Route alteration refactor and that does hightly simplify/clearify the situation.
That is not an bug but and Support requesto to works with Profile module and I APPROVE THAT IDEA !
Comment #3
woprrr commentedI mark it as Postponed because we need to investigate more about errors generated by Profile module. (We have seen few fatal errors when we have activated this module).
This is not our First focus ATM. But if we can continue to investigate more and/or make more precise feedback that should be USERFULL and can unblock situation fastly.
Comment #4
woprrr commentedAfter try to investigate about the Profile problems this pretty hard to debug / seen what is the problems because actually after Profile installation we have the following error :
We need to wait a stable version to begining a support request. In the usage I really don't understand in what usecase we need to have Profile + Form modes ? Profile seem's to implement a wrapper entity like User + Form mode purpose about functionalities. We need more information/discuss about this point.
Comment #6
woprrr commentedThe reason of "Page not found" is normal because the structure of entity routes aren't "standard" regardless of other entities supported.
Edit form : entity.profile.type.user_profile_form
Add form : entity.profile.type.user_profile_form.add
That does be : entity.profile.edit_form && entity.profile.add_form to work natively.
Comment #7
woprrr commentedWe need to have more feedback about this subject for now with 2.x branch ... But the stability and justification of Profile usage with Form Mode Manager take somes problems IMHO because both modules purpose two way to solve same problem.
Comment #8
woprrr commentedI continue this issue now. New Form Mode Manager design allow entities to have no predictable structure / routes now. ATM Form Mode Manager are compatible only on 'edit' action because the edit operation are 'standard' but with a little adjust we can support 100% of functionalities purposed by Profile + Form Mode Manager.
I purpose a start of patch to make Form Mode Manager totally compatible with Profile but we need to continue efforts and make Form Mode Manager more flexible and permit to Profile to implement her proper logic in events instead of using Form Mode Manager Abstract Factory directly.
I create a follow-up issue to make Form Mode Manager more extendable by purposing Events to interact with Form Mode Manager abstract factory and subscriber to make possibility to change the logic of routes for specific entity type id.
I wait your feeling/feedback about that issue.
Resume of routes usable :
ADD : user/{user}/{profile_type}/add/{form_mode_name}
EDIT : profile/{user}/edit/{form_mode_name}
LISTING PAGE : profile/add-list/{form_mode_name}
Comment #9
woprrr commentedSmall Fix because previous change are destructive change :(
Comment #10
woprrr commentedProbably an error !! change that into proper Profile Plugin.
@minhtranite This patch solve your problems with Profile ? Can you test it ? I really need your feedback here please...
Comment #11
woprrr commentedThis issue seem's to not interest lot of people... We have to change our strategy here and not trying to support ALL contributed modules with entities very specific. Like Groups issue #2939643: Compatibility with Group Module we have to create a new module project to assume these complexity and specificity using FMM help.
If anyone need to continue that work with me I'm pretty OK to be co-maintainer or define people to be co-maintainer of projet let me know ;)
Comment #12
lawxen commentedHi @woprrr I have make the patch to be a standard alone module patch on https://www.drupal.org/project/profile_form_mode_manager/issues/3063235#...
Comment #13
lawxen commentedThis patch's logic is not right, profile/{user}/edit/{form_mode_name} should be both create and edit route
Comment #14
avpadernoI am editing the used issue tags. I apologize for bumping this issue.