[pmwiki-users] Page variables with markup in them...

The Editor editor at fast.st
Wed Sep 13 09:23:03 CDT 2006

Ok, I'll try and answer the question.  I'll happily send you the
latest draft of the recipe if my answer doesn't provide the info your

The $log page variable is set by markup like (:data
Group.Name|id,log,fieldx:), which retrieves and sets {$id} {$log} and
{$fieldx} either from values passed as GET variables, or other special
rules.  Here is the markup, which is processed just before the page
variables are set.

Markup('fastdata', '<{$var}', '/\(:data(.*?):\)/ei', "ReadData('$1')");

The log variable is processed as a part of the ReadData function, and
manually does it's own parsing of the data page to get the values set
off between : : and : :  All the other variables seem to be working
properly.  And the GetLog function seems to be retrieving the right
text string so far as I can tell.

Other than that, the content of the log entry is just displayed using
{$log} in a page.  Note, it did the same thing when I tried to extract
a value like this from the datapage:


and set it to {$link}, while all the other regular text values were
set just fine.  So it seems to be something to do with certain values
being rejected as content for pagevariables.

Hope this helps.  Let me know if you need the full recipe.  It's well
commented and pretty clear, but significantly revised from whats in
the PmWiki cookbook.


On 9/13/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Wed, Sep 13, 2006 at 09:40:11AM -0400, The Editor wrote:
> > Hi Pm, I just gave the first code string to make sure I had the right
> > value for GetLog.  [...]
> The problem is that I don't know *when* in the process any of
> these functions are being called.  Are they being called as
> part of a markup rule, or in a local configuration file, or ...?
> Without knowing that, I can't tell the sequence of items
> to be able to understand what's happening (extremely important
> when dealing with page variables).
> Pm

More information about the pmwiki-users mailing list