I have a custom content type called ‘shop’. I also have forums installed, and a couple of other interactive content types throughout the site. I want to be able to let users ‘mention’ or reference shop content nodes in the bodies of comments or forum topics, and have those ‘mentions’ automatically link back to the original shop they’re referencing - basically like an inline entity reference option that doesn’t require its own unique field.

An example would be if someone posted a comment saying something like “I think @SpecificShop has what you’re looking for”, and ‘@SpecificShop’ automatically turned into a hyperlink to the SpecificShop shop node, the same way it would if I typed ‘SpecificShop’ into a custom entity reference field.

Ideally, I’d also like to be able to make a list of these mentions/references in Views so I can then display ‘SpecificShop’s references on the ‘SpecificShop’ node. (‘: I have looked at a few modules, but I can’t seem to figure out how to make it work.

Comments

This is not an easy thing to accomplish. Since you want to replace some text in a long text field (the comment body) with some specific link, you will need to write a text filter that does that. It may be possible to create a plugin for CKEditor, but I think creating a text filter might be easier. Take a look at the Example module, which provides an example of a filter.