Hi - have searched to see if such a question has already been asked but didn’t see anything. it is common that we need to attach a slug of one page, in the content of another page. Imagine a post describing a product, and another page that lists the top 10 of that product type, and it references those other pages. We can, and do, build relationships. But because the content team wants those links appear within the content we have been using markdown, which is kind of crappy way to do this - purely because the slug could change and then we have a bunch of dead urls. In case this is not clear:
“As games go, there are fewer on the market more renowned than GTA 5. The anticipation for The sixth installment is at peak. With the game supposed to release some time next year … blah blah blah”.
(and of course this pattern could be repeated multiple times within that piece of content: either for other posts, or to link to the same post, ideally without having to have fix the text to be the name of the product as per above: “The sixth installment” is not “GTA 6”).
Is there any kind of plugin, or some such that would allow me as an editor to craft some text inside either a standard long string textbox, or if it has to be, a rich textbox supporting markdown, with a url to a slug of another page right in the middle of that content? How would the Strapi experts suggest to achieve this? I’ve some ideas, but they kind of all suck:
If we know we have relationships to these products, we could have some magic text {{ product_id: 1234 }} which can be transformed into a url slug before the html is rendered and sent to the user.
If we know we have relationships to these products, we could scan the content and whenever there is a match on product_name, turn product_name into a url slug
Neither of these sound particularly good, and my expectation is that I’m not the first person to come across such a desire. Any / all suggestions welcome ![]()
Thanks!
This topic has been created from a Discord post (1277826471901138944) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord