From: Reini U. <ru...@x-...> - 2002-08-16 12:06:10
|
I forgot to add support for relative style "/SubPage" links, which I do hereby. Attached is the combined patch for improved SubPages and ImageLinks. Reini Urban schrieb: > I ported my old implementation of Imagelinks now the latest phpwiki > version. Keeping the metaphor [ linkname | url ] the linkname is what > gets displayed. here the inlined image. the url is the target, here the > pagenamed linked to. > > [ img | link ] > like [images/prev.gif|PrevLink][images/next.gif|NextLink] > as described in http://phpwiki.sourceforge.net/phpwiki/ImageLinks > > The images path is relative to the current theme, so we don't need the > http: part in front. > Included in the patch is also the SubPage patch, because I had to fix > the SubPage patch to support ImageLinks. > > Discussable would be to put those links without http: into the buttons > subdir, and provide a "^button:" prefix, like [button:next.gif|NextLink]. > > A live sample is at > http://xarch.tu-graz.ac.at/autocad/wiki/WhatChangedWithAutoCAD2000 > (page unaltered from the old version using my hacked 1.2 phpwiki lib.) > > The patch at http://phpwiki.sourceforge.net/phpwiki/ImageLinks is > defunct. The Alt text (cartens' complaint) is the name of the link, > here $URL. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |