[Pmwiki-users] Overwriting page
Philip Mateescu
pmateescu
Thu Jul 8 07:14:06 CDT 2004
Thanks Patrick!
Patrick R. Michaud wrote:
> ...
>
> if ($action=='edit' && preg_match('/some regexp/',$pagename) {
>
> I probably need a slightly more detailed example of what you want
> to happen before I can give better pointers beyond this.
I actually wanted to do it on regular view. Let's say the user creates
the following page:
-----
Weather: Zip=77339
Stocks: Name=^IXIC ^DJI
Local Headlines: City=Houston,TX
-----
I'd like to "intercept" pmwiki's render and overwrite the above text with:
-----
Weather: it's 88F in [[http://... Kingwood, TX]]
Stocks: [[http://... NASDAQ]]: 1966.08 (up 0.2%) DOW J 10240.29 (down 0.3%)
Local Headlines: ...
------
Something to that extent. What I want to override is just the preparsed
content. I still want to benefit from pmwiki's .err.. renderer (i.e. the
part that transforms [[ ]] into the link and so on.
What do you think?
Thanks in advance.
Best regards.
philip
----
Longhorn error#4711: TCPA / NGSCB VIOLATION: Microsoft optical mouse
detected penguin patterns on mousepad.
---
More information about the pmwiki-users
mailing list