List Info

Thread: A link to add new page after empty search




A link to add new page after empty search
user name
2006-08-29 21:26:04
After some experiment, you actually have a
"hidden" function to create a new
page.
It is under the Search box in the upper right corner, a
layer will show up
when the mouse moves over there, there are three functions:
view | edit |
find. The edit function is what I am looking for.

It is not obvious, but it is sort of there...

I will try your suggestion of adding this function into the
search result.
Thanks...

  Steve Lihn, Enterprise Web Infrastructure, Merck &
Co., Inc.,   
  Tel: (908) 423 - 4441

  


-----Original Message-----
From: jspwiki-users-bouncesecyrd.com
[mailto:jspwiki-users-bouncesecyrd.com] On Behalf Of
Janne Jalkanen
Sent: Tuesday, August 29, 2006 5:16 PM
To: JSPWiki Users discussion list
Subject: Re: [Jspwiki-users] A link to add new page after
empty search



On 30 Aug 2006, at 00:06, Lihn, Steve wrote:

> Janne,
> After played with JSPWiki a few times, one feature I
would like to  
> see (it
> is in Wikipedia) is to have a link to create a new page
(from the left
> menu), and if I search a text and do not find result,
there should  
> be a link
> to allow me edit this unfound text into a new page.

Well, Wikipedia is different because it is really about
creating an  
encyclopedia.  We're more of a traditional wiki in the
sense that one  
should create a link from a page first to avoid orphaned
pages.

But it should be a pretty trivial tweak to add it in your
own  
template - just

a) make a directory templates/steve
b) copy templates/default/FindContent.jsp to steve
c) modify templates/steve/FindContent.jsp as you please
d) set your jspwiki.templateDir=steve

(Note that you don't need to copy the entire default
directory.  This  
allows later upgrades to go much smoother, because you
modify only  
files that you need to and leave the rest to be handled by
the  
default system.)

/Janne


_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users



------------------------------------------------------------
------------------
Notice:  This e-mail message, together with any attachments,
contains
information of Merck & Co., Inc. (One Merck Drive,
Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be
known
outside the United States as Merck Frosst, Merck Sharp &
Dohme or MSD
and in Japan, as Banyu - direct contact information for
affiliates is 
available at http://www
.merck.com/contact/contacts.html) that may be 
confidential, proprietary copyrighted and/or legally
privileged. It is 
intended solely for the use of the individual or entity
named on this 
message. If you are not the intended recipient, and have
received this 
message in error, please notify us immediately by reply
e-mail and then 
delete it from your system.

------------------------------------------------------------
------------------
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )