On Mon, May 02, 2005 at 11:41:30PM +0200, Ludovic Dubost wrote:
Hi Jens !
This is great ! Another fine plugin after the Lucene plugin.. This looks
really cool.
Concerning your link issue, what are the links you try to put in the
More Actions menu ?
the velocity snippet looks like this:
#set($plugin=$xwiki.getPlugin("emailnotify"))
#if($plugin)
#set($subscribe=$request.getParameter("subscribe"))
#if($subscribe)
$plugin.processSubscription($subscribe,$doc,$xwiki,$context)
#end
<div
class="xwikimenutitle">$msg.get("emailnotifications")</div>
#if ($context.getUser().equals("XWiki.XWikiGuest"))
#xwikiitem("#" "loginforsubscriptions")
#else
#if($plugin.isSubscribed("page",$doc,$xwiki,$context))
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=page")
"unsubscribepage")
#else
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=page")
"subscribepage")
#end
#if($plugin.isSubscribed("web",$doc,$xwiki,$context))
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=web")
"unsubscribeweb")
#else
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=web")
"subscribeweb")
#end
#if($plugin.isSubscribed("wiki",$doc,$xwiki,$context))
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=wiki")
"unsubscribewiki")
#else
#xwikiitem($xwiki.getURL($doc.fullName, "view",
"subscribe=wiki")
"subscribewiki")
#end
#end
#else
<div class="xwikimenutitle">no notify plugin</div>
#end
it makes no difference if it is included directly or via a #template
directive. To me this behaviour really seems like if an old version of
the viewheader (or the toolbar), which doesn't include my changes, is
used. I first thought this would be a skin issue, so I tried the toolbar
which doesn't seem to belong to a skin (simply edited XWiki.Toolbar) but
the same thing happened again.
maybe it's an issue with my jdk1.5/tomcat5.5 setup ?
Jens
--
Jens Krämer
jk(a)jkraemer.net