Display Child Count with Extension Lib

@paulalogno during the CHT Dev Hour today we were discussing the need to be able to display the count of the children on a parent contact when viewing the contact’s profile page. It was noted that support for that kind of functionality was blocked by this existing feature request (which, in turn, is further complicated by a work being done to cache calculated contact summaries…).

One thing that has been rolling around in my head for a bit is that it should be trivial to hack together a workaround using an extension-lib. So, I decided to give it a shot! You can check out the code here for the child-count.js extension-lib.

To be clear, this is not “supported” behavior and definitely a “use at your own risk” approach, but it could be a possible workaround. (At the very least it is an amusing demonstration of the kinds of things you can do with an extension-lib… :sweat_smile:)

4 Likes

@jkuester you rock! :ninja::tada:

Thanks for putting together this quick workaround! It’s a great workaround while we wait for a more “supported” approach.
Really appreciate your creativity in using the extension-lib to make this possible! :raising_hands:

4 Likes