[Pmwiki-users] wikitrails and includes (V1)
Knut Alboldt
mailing
Tue Oct 12 15:16:17 CDT 2004
It is possible to implement wiki-trails that way, that if the index-page
includes pages these will be resolved for the trail as well.
e.g.:
Trail.Index-page:
-----------------------
* some listentry1
[[include:Trail.Index1]]
* some listentry4
Trail.Index1-page:
-----------------------
* some listentry2
* some listentry3
will be processed like a Trail.Index-page:
* some listentry1
* some listentry2
* some listentry3
* some listentry4
in the original scripts/trail.php the contents of the included page is
skipped for processing the trails.
to do this, in a local copy (local/trail.php) of scipts/trail.php the line
foreach(explode("\n",$trailpage['text']) as $x) {
must be exchanged by the following two:
$text = ProcessIncludes($pagename,$trailpage['text']);
foreach(explode("\n",$text) as $x) {
local/trail.php then must be explicitly included in config.php.
Patrick, how's about putting this into the original scripts/trail.php of v1
? Or should I better create a cookbook entry ?
Knut
More information about the pmwiki-users
mailing list