[Pmwiki-users] A new skin and a WikiTrails request for enhancement
Patrick R. Michaud
pmichaud
Tue Dec 28 09:11:47 CST 2004
On Tue, Dec 28, 2004 at 02:32:22AM +0100, Dominique Faure wrote:
>
> I'm about to study a Wikitrails enhancement, and I wanted to know before
> starting to dig if someone as already made it (why should I reinvent
> wheels...).
> My enhancement would consist in getting the first available link on each
> list bullet:
> * [[link]] this link work in trails
> * but this [[one]] don't
> * the first found is [[the one]] to handle, [[the next]] are to be
> forgotten.
It's not written as an enhancement, but it's easily done. In trails.php,
change
if (!preg_match("/^([#*]+) \\s*
(\\[\\[([^|]*?)(\\|.*?)?\\]\\]($SuffixPattern)
| (($GroupPattern([\\/.]))?$WikiWordPattern))/x",$x,$match))
to be
if (!preg_match("/^([#*]+) .*?
(\\[\\[([^|]*?)(\\|.*?)?\\]\\]($SuffixPattern)
| (($GroupPattern([\\/.]))?$WikiWordPattern))/x",$x,$match))
and it will use the first available link for each bullet. If a lot
of people want this feature, I'll make it into a configurable option
of some sort.
Pm
More information about the pmwiki-users
mailing list