[Moin-user] First macro call

Jim Wight j.k.wight at ncl.ac.uk
Mon Oct 3 06:28:35 EDT 2011


On 20/09/11 10:09, Jim Wight wrote:
> How might a macro determine when it is being called for the first time
> in a page?

I've come up with an answer to my own question: track the page name 
(using macro.formatter.page.page_name). A change of name will obviously 
be detected by the first call in a page. Furthermore, this solution 
fulfills the criterion that I mentioned in my previous followup - that 
it should work at earlier releases.

Jim




More information about the Moin-user mailing list