[pmwiki-users] Wiki Trail question
Hans
design5 at softflow.co.uk
Mon Nov 20 17:02:44 CST 2006
Monday, November 20, 2006, 8:18:36 PM, Sandy wrote:
> I'd like to have a wiki trail, but not have the first word of each item
> be the anchor.
> E.g.
> *The first page is page [[one]].
The current trail markup only picks links at the beginning of each
list item. To pick up the first link later on in the line of the list
item needs a change in the ReadTrail function of scripts/trails.php.
As far as I can figure the change necessary is quite small:
On line 54 replace \\s* with .*?
change line 54: if (!preg_match("/^([#*:]+) \\s*
to: if (!preg_match("/^([#*:]+) .*?
Since I don't recommend core hacks, I suggest to save
trails.php under a different name in the cookbook, say
cookbook/trails2.php. Then edit trails2.php as suggested above, and
add to config.php:
$EnableWikiTrails = 0; # disable scripts/trails.php
include_once("$FarmD/cookbook/trails2.php");
and do some testing.
~Hans
More information about the pmwiki-users
mailing list