[pmwiki-users] Request for modifying trails.php to allow customization

chr at home.se chr at home.se
Tue Aug 16 15:02:33 CDT 2005


Hi Patrick

I'd like to ask you to modify trails.php so that it's easier to use it 
together with John's teasers etc. Right now I manually have to replace 
lines like this before it works:

<     if (!preg_match("/^([#*:]+) \\s* 
---
>     if (!preg_match("/^(T?[#*:]+) \\s* 

The change here is of course to let the markup recognize

	T* [[Page]]

as part of trail just like

	* [[Page]]

I imagine this is a simple matter of replacing the long string here

    if (!preg_match("/^(T?[#*:]+) \\s*
	             (\\[\\[([^|]*?)(\\|.*?)?\\]\\]($SuffixPattern)
		     | (($GroupPattern([\\/.]))?$WikiWordPattern))/x",
                    $x,$match))

with a variable. Or perhaps just a part of the string (the initial part).

The teaser markup could then modify the string accordingly.

regards
Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list