The prerequisite is that shortcodes are implemented in templates that stand for a topic. For example, we have inserted the string "#SC_DE_B2B" under the text of a ticket template and colored it white in order to be able to search for the text as a shortcode in the function. All B2B-regarding templates will contain this string and will result to the selection "B2B informations".
In addition, there is a "Topic" picklist in the ticket layout, in which the respective topics are stored.