-
Notifications
You must be signed in to change notification settings - Fork 12
Distinguish name and id for contact information #459
Comments
I want to add that this'd be nice to have if monica plugins ever become a thing (or already are). That way we could write plugins that would automatically integrate remote platforms with monica. |
I would love that. That being said, I have no idea how to achieve this. Do you know any kind of documentation I could read that would guide us towards this approach? |
I'm more of a JS guy -- but generally speaking you'd source other PHP files from another directory.
Roundcube does it pretty well and uses composer for fetching the plugins but I'm unsure how they go about the whole hooks and API things since I've only ever done that type of stuff in JS. It seems that they do the loading by using an array in the config and (speculation) looping over it to source the proper files. I havent found any good docs on php module systems, but I think roundcube's way of approaching it is the way to go. I would start this out with basic plugin loading and exposing a high-level API for plugins to use (create user, edit user, etc) rather than immediately trying to implement hooks, since that's going to take a bit more time and the plugin system should be polished before. I hope this helps. |
@phorcys420 this is extremely instructive. Thanks a lot. |
If I take the example of Discord, I'd rather be able to have a label that says "user#0000", or "Discord" than a raw ID like that.
what I'm thinking about is that when creating the contact information type, you could specify whether you should distinguish ID and name or not. (and if #458 gets implemented, then two separate values should be available too)
The text was updated successfully, but these errors were encountered: