[pmwiki-users] automatic link creation

Simon nzskiwi at gmail.com
Wed Aug 26 04:55:38 CDT 2009


Perhaps http://www.pmwiki.org/wiki/PmWiki/InterMap might be of use.I'm sure
there was a was of creating links in config.php, but I can't lay my hands on
it.
Also maybe custom page variables
http://www.pmwiki.org/wiki/PmWiki/PageVariables

Simon


2009/8/26 Melodye Bowers <pbowers at pobox.com>

> On Tue, Aug 25, 2009 at 11:38 PM, adam overton <a at plus1plus1plus.org>wrote:
>
>> hi
>> i would like to have pmwiki convert certain commonly appearing names
>> (or terms, or orgs) into a links to the respective person's external
>> website.
>>
>
> 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...
>
> $foo = array('John' => 'http://www.abc.com', 'Sally' => '
> http://www.def.com');
> foreach ($foo as $name => $site) {
>    Markup('/\b'.$name.'\b/', '%newwin%'.$site.'%%', ...);
> }
>
> 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...
>
> -Peter
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>


-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090826/4fff848f/attachment.html 


More information about the pmwiki-users mailing list