Hello forum members,
If there is a plugin available for what I am trying to accomplish, please let me know.
Essentially, I’d like to have links created from a channel entry’s custom field that points to key areas of the website.
The conditional or if necessary the php, would search through several paragraphs of text contained in that custom field and it would then take the first instance of that keyword and alter the html output to create a hyperlink to the associated area. So it would essentially str_replace the first instance to create the link.
Ideally, I only have about 5 main keyword phrases that I would use this for. So, the function would find a match for, “red widgets”, and that line of text would geat wrapped in an anchor tag to http://www.mysite.com/index.php/widgets/red-widgets
If instead a match is found for “blue widgets”, it would go to http://www.mysite.com/index.php/widgets/blue-widgets
I know wordpress has a plugin like this available called, “Seo Smart Links”.
Does EE 2.1 have a plugin available for this task, or can it be done with conditionals?
Any ideas are very welcome, I appreciate any input that is offered.