ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Automatic Link Creation from entires, SEO Smart Links

August 27, 2010 11:35am

Subscribe [1]
  • #1 / Aug 27, 2010 11:35am

    togs

    9 posts

    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.

  • #2 / Aug 28, 2010 9:02am

    Rob Allen

    3105 posts

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases