You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Bob Paige <bo...@gmail.com> on 2009/01/15 18:05:54 UTC

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

Re: favorite links

Posted by Harry Metske <ha...@gmail.com>.
Create a page with the name :  <YourNameFavorites> and fill it with your
favorites.

see an example here :
http://sandbox.jspwiki.org/Wiki.jsp?page=DirtyHarryFavorites

Harry

2009/1/15 Bob Paige <bo...@gmail.com>

> 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
>

Re: favorite links

Posted by Bob Paige <bo...@gmail.com>.
It does work as Dirk suggests. Now I have two options! Either users define
their own 'Favorites' page, or I dynamically create a list of related
projects based on people putting links to their personal pages on the
project page.

Thanks everyone.

-- 
Bobman

On Thu, Jan 15, 2009 at 5:50 PM, <Lo...@log-net.com> wrote:

> Does $username work?  That's great if it does.
> -Lou
>
>
> "Dirk Frederickx" <di...@gmail.com> wrote on 01/15/2009 01:47:54
> PM:
>
> > Did you try something like this ?
> >
> > [{ReferringPagesPlugin include='*Project' before='*' after='\n\n' page='
> > {$username}'  }]
> >
> >
> > dirk
> >
> >
> > On Thu, Jan 15, 2009 at 6:23 PM, <Lo...@log-net.com> wrote:
> >
> > > 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" <bo...@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
> > >
> > >
>

Re: favorite links

Posted by Lo...@log-net.com.
Does $username work?  That's great if it does.
-Lou


"Dirk Frederickx" <di...@gmail.com> wrote on 01/15/2009 01:47:54 
PM:

> Did you try something like this ?
> 
> [{ReferringPagesPlugin include='*Project' before='*' after='\n\n' page='
> {$username}'  }]
> 
> 
> dirk
> 
> 
> On Thu, Jan 15, 2009 at 6:23 PM, <Lo...@log-net.com> wrote:
> 
> > 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" <bo...@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
> >
> >

Re: favorite links

Posted by Dirk Frederickx <di...@gmail.com>.
Did you try something like this ?

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


dirk


On Thu, Jan 15, 2009 at 6:23 PM, <Lo...@log-net.com> wrote:

> 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" <bo...@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
>
>

Re: favorite links

Posted by Lo...@log-net.com.
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" <bo...@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