incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis.Mast...@log-net.com
Subject Re: favorite links
Date Thu, 15 Jan 2009 17:23:40 GMT
You can write a custom plugin to do that (or change the existing plugin). 
I think the code is something like this:

String storedUser = context.getWikiSession().getUserPrincipal().getName();


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content, 
the information contained herein is privileged and confidential 
information/work product. The communication is intended for the use of the 
individual or entity named above.  If the reader of this transmission is 
not the intended recipient, you are  hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please 
notify the sender immediately by telephone (732-758-6800) or by electronic 
mail (postmaster@LOG-NET.com), and destroy any copies, electronic, paper 
or otherwise, which you may have of this communication.  Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



"Bob Paige" <bobpaige@gmail.com> 
01/15/2009 12:06 PM
Please respond to
jspwiki-user@incubator.apache.org


To
jspwiki-user@incubator.apache.org
cc

Subject
favorite links






We use JSPWiki internally to track multiple projects (all in the same 
wiki).
Is there some easy way, plugin, or whatever, to implement a 'my favorite
links' type of feature?

For example, we currently have 22 projects on the projects list page. I 
use
ReferringPagesPlugin to generate this list. But I only actively contribute
to 3 of those projects. It would be really cool if I could have a list of
these 3 projects automatically generated and included on the left margin.

I can almost accomplish this with ReferringPagesPlugin; maybe someone can
fill in the detail I'm missing?

The following displays all Project pages with links to me in them (this
approach uses the link between Project page and my profile page to 
indicate
I am active in that project):

[{ReferringPagesPlugin include='*Project' before='*' after='\n\n'
page='MyName'}]

The problem is my name must be hard-coded. Can I dynamically drop in the
current user's name?

-- 
Bobman


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message