[pmwiki-users] Maintaining recipes that require non-relative urls ({*$var})
Patrick R. Michaud
pmichaud at pobox.com
Mon Oct 2 09:03:41 CDT 2006
On Mon, Oct 02, 2006 at 08:49:51AM -0500, Patrick R. Michaud wrote:
> On Mon, Oct 02, 2006 at 06:59:41AM -0400, Pico wrote:
> > When relative urls were introduced there was an acknowledgment that
> > relative links will "break" skins, such as Triad?
>
> Currently it breaks them. However, if a skin or recipe wants to
> use {*$var} with pre-2.2 versions of PmWiki, the easiest solution
> is to just add the {*$var} markup directly: ...
Actually, an even simpler solution is:
if ($VersionNum < 2001900)
Markup('{*$var}', '<{$var}', '/\\{\\*\\$/', '{$');
which simply converts any {*$var} markup into {$var} on
versions of PmWiki prior to 2.2.0-beta1 .
Pm
More information about the pmwiki-users
mailing list