[pmwiki-users] Default styling of links to non-existent pages
Patrick R. Michaud
pmichaud at pobox.com
Fri Jan 27 18:28:39 CST 2006
On Fri, Jan 27, 2006 at 11:10:21PM +0100, christian.ridderstrom at gmail.com wrote:
> On Fri, 27 Jan 2006, Patrick R. Michaud wrote:
>
> > 5+: $IMapLinkFmt['http:'] http: links
> > $IMapLinkFmt['https:'] https: links
> > $IMapLinkFmt['PmWiki:'] links to PmWiki: InterMap shortcut
> > $IMapLinkFmt['Cookbook:'] links to Cookbook: InterMap shortcut
>
> Would it be possible to replace the format string with a hook if so
> desired? Perhaps I could then use that for my 'uploads:'-links (see my
> other rather long post). The hook function that I supply would then check
> if the uploaded file exists, and return either a customized format string,
> or simply the relevant HTML depending on this condition.
There's already a hook -- that's what the $LinkFunctions array does. :-)
Pm
More information about the pmwiki-users
mailing list