[pmwiki-users] [pmwiki-devel] markup timing and page variable

The Editor editor at fast.st
Mon Jul 7 13:52:55 CDT 2008

On Mon, Jul 7, 2008 at 2:02 PM, Hans <design5 at softflow.co.uk> wrote:
> Monday, July 7, 2008, 6:50:31 PM, Patrick wrote:
>> There's also an argument to be made that using the markup to
>> set the page variable is somewhat incorrect, because it means
>> that '{OtherPage$RatingXYZ}'  isn't likely to work properly.
>> What should really happen is that the page variable should
>> work independently of the markup itself, which would really
>> solve the issue you're having altogether.
> I appreciate this. I did not think of this. Of course one wants
> {OtherPage$RatingXYZ} to work, for instance to devise page listings
> according to ratings...
> I think I would need to rewrite my main markup function, to split it
> into two, so the page variable can get a result from one function,
> but the major display output part is done by another.
> Oh well, such is the joy of coding. The page variable was an
> afterthought, always dangerous ;-)
> Thanks for you reply!

Another option might be to save the output score as a data variable or
a hiddenPTV variable on the page whenever someone votes. So it is
always current. And that variable can be retrieved.


P.S. Thanks for finding the script. I've been wanting something like that.

More information about the pmwiki-users mailing list