<div class="gmail_quote">On Tue, Aug 25, 2009 at 11:38 PM, adam overton <span dir="ltr"><<a href="mailto:a@plus1plus1plus.org">a@plus1plus1plus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br>
i would like to have pmwiki convert certain commonly appearing names<br>
(or terms, or orgs) into a links to the respective person's external<br>
website.<br>
</blockquote><div><br>If there is something in common between the people's external web-sites then it could be more elegant than this, but a simple set of rules sounds like what you're looking for...<br><br>$foo = array('John' => '<a href="http://www.abc.com">http://www.abc.com</a>', 'Sally' => '<a href="http://www.def.com">http://www.def.com</a>');<br>
foreach ($foo as $name => $site) {<br> Markup('/\b'.$name.'\b/', '%newwin%'.$site.'%%', ...);<br>}<br><br>Does that work? Obviously this requires it all to be set up in config.php and I don't know if that's what you're looking for, but maybe it'll be a start...<br>
<br>-Peter<br></div></div>