We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28557
    • 1 Posts
    stevenmcooper Reply #1, 16 years ago
    Hi

    Autolink (http://modxcms.com/Autolink-507.html) is a great module and well worth checking out if you’d like to optimize your site.

    Does anybody know if Autolink can be used to detect 1 keyword occurrence per page and then link to it? I tried editing the preg_replace functions to specify a limit of 1 $substitute = preg_replace(’/\b’ . htmlentities($keyword) . ’\b/’, $kmatch[0], $substitute,1) , but all that has achieved is locating the same keyword once per paragraph.

    Any suggestions would be greatly appreciated huh
      • 170
      • 3 Posts
      need this too ... Please :’(