I am looking to add the text of some custom widgets to the widget template of the Thumbnails template for e-commerce products.

We currently have some custom classifications added to our products, one of which is called Display Keywords (displaykeywords)

We would like to show the text of each of the Display Keywords classification assigned to a product in its thumbnail, but I'm unable to find an appropriate example where the classification text data is exposed.

I'd like to do the same with Departments.

We've tried editing the template but don't understand what the references to those elements should be in the scope of a template.

Any help would be appreciated.