PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #2947

more flexible way to handle wikilinks

Details

Request #2947more flexible way to handle wikilinks
Submitted2004-12-11 12:57 UTC
Fromalaa at eglug dot org
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version4.2.0
Roadmaps(Not assigned)

Comments

[2004-12-11 12:57 UTC] alaa at eglug dot org

Description:
------------
sorry for sending this in two different places, not sure where it should go.

hi very impressed with TextWiki, trying to use it to implement some drupal
module (along with textDiff)

however the way TextWiki handles WikiLinks seems a bit inefficient for me,
is it possible to use a callback for this job instead of passing an array
of all pages?

when the client code configures the TexWiki object it would pass it a name
of a function, each time a WikiLink is encountered that function is called,
if it returns null its a new page, else it will return the URL (or a subset
of the url).

does this make sense to you?

----
Alaa