Skip to content
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

[Feature Request] Bridge between contacts and users #131

Closed
benface opened this issue Apr 11, 2020 · 4 comments
Closed

[Feature Request] Bridge between contacts and users #131

benface opened this issue Apr 11, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@benface
Copy link

benface commented Apr 11, 2020

Is your feature request related to a problem? Please describe.

Not exactly a problem, other than the fact that it's currently annoying to not know at a quick glance whether a given Craft user is subscribed to a Campaign mailing list, or whether a Campaign contact has a Craft user account.

Describe the solution you would like

In the Contact details page, it would be nice to have an "Associated User" field that would link to the user if there is one. For the other way around I suppose it's more complicated, but maybe there could be a special "Associated Campaign Contact" field type that could be added to the User field layout to do the same thing?

Describe alternatives you have considered

An alternative is to create a Users field with a limit of 1 and put it in the Contact field layout, and create a Campaign Contacts field with a limit of 1 as well and put it in the User field layout. However it requires custom code or a lot of manual work to keep them in sync.

Thank you!

@benface benface added the enhancement New feature or request label Apr 11, 2020
@bencroker
Copy link
Collaborator

Thanks for the suggestion, added in 8e913a6.

Screenshot 2020-04-15 at 10 08 39

@benface
Copy link
Author

benface commented Apr 20, 2020

@bencroker Thank you. I just tested this, and it's not exactly what I meant. I am not using the "sync" feature, but even if I was, it looks like this only works for new contacts. Would there be a way to show the equivalent user (same email address) even if they were not synced? And what about showing the equivalent contact on a user's profile? Maybe this is not something you want to support, in which case I perfectly understand, but I think it would be a great addition to this great plugin.

@bencroker
Copy link
Collaborator

bencroker commented Apr 21, 2020

Ok, so I implemented your suggestions in 31fd411. The user/contact is displayed if it exists and the refresh icon is displayed if the user is synced.

Contact edit page:

Screenshot 2020-04-21 at 10 20 32

User edit page:

Screenshot 2020-04-21 at 11 27 18

@benface
Copy link
Author

benface commented Apr 21, 2020

Awesome @bencroker! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants