incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: page filter
Date Thu, 05 Mar 2009 23:10:28 GMT

Compare the value from wikiContext.getPage() and  
wikiContext.getRealPage() and you should be able to figure out when  
you're on the main content page ;-)

(this is becoming an FAQ, someone just asked about this a few days  
ago...)

/Janne

On Mar 5, 2009, at 21:36 , Bob Paige wrote:

> I am trying to write a page filter that adds something to the  
> content frame
> of the page. How can I detect when the filter is being called for the
> content?
>
> If I have the filter add its text every time it is called, the text  
> shows up
> next to the login name, the left menu page, etc., etc. :)
>
> I tried setting a context variable to make sure I only process it  
> once per
> page, but I'm still left with knowing when.
>
> -- 
> Bobman


Mime
View raw message