...
- I created a webskin called webtopOverviewTabRelated.cfm and put it in /webskin/types,
- looped over application.stCOAPI[stObj.typename].aJoins to get all the relationships that the type is a part of,
- used application.fapi.getContentObjects() to retrieve content have with one of those relationships with this object (with some deduping in the process),
- then outputed that content using the librarySelect webskin (the webskin used in library pickers)
These custom tabs are only loaded when a user clicks on them, via AJAX, which means that this all of this is only executed and rendered if the user is actually interested.
...