Page 1 of 1

how add link to a related content

Posted: Mon Feb 25, 2013 6:18 am
by srdva59
hi,
i have a website with some content then i need add links related for that content,
for example if i have a content called cloud and i write cloud in the text
i want a script can add a link in that word cloud that point to the content
called cloud.
how can i do this?
thanks for your help
:)

Re: how add link to a related content

Posted: Mon Feb 25, 2013 3:17 pm
by requinix
This should be done during a "preprocessing" step because it will take long enough that you don't want to do this every time the text is being displayed.

It's basically just a matter of looping through all the words and attempting a regex replacement for each one. Can you give that a shot?