-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap "not you" message in crmRegion #18236
Conversation
(Standard links)
|
I'll add documentation here once merged: https://docs.civicrm.org/dev/en/latest/framework/region/ |
fccb752
to
d7069b3
Compare
Is there any reason to give them different names? |
@colemanw Yes, last time I added a region to both I was asked to name them differently. My first thought was to name them the same and I'd be happy to do so - can you confirm which you'd prefer and I'll update? |
Hmm, which region was that? |
Looks like it was this one: civicrm/civicrm-dev-docs@bff90ee#diff-58e14f7bedd129b99f44ffce86365618 |
Ok, I'm not sure why regions would have to have different names if they are the same region on different forms, since you can target a particular form in your hook if you wish. |
@colemanw I believe it was consistency with the others that already existed at that time |
For what it's worth the doclink referenced has a naming conventions section that says make them match the file path. But reasoning is not stated. https://docs.civicrm.org/dev/en/latest/framework/region/#naming-conventions |
Ok whatever. |
Overview
On both contribution pages and registration pages there is a "Not you, do you want to register for someone else" message. I've had requests from various clients to hide this and you can generally do it with javascript. But it's not ideal, it often "flashes" on screen before disappearing, if there is a javascript error it doesn't disappear, if you don''t load the javascript (eg. when a contribution is inserted via shortcode on wordpress).
This wraps the message in a
crmRegion
so that it can be removed/replaced via the buildForm hook before it reaches the browser. Example:Before
Described above.
After
No change. By implementing code you can modify/remove the message div from the form.
Technical Details
Comments