Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by BobHarner:
http://wiki.apache.org/lenya/HowToDefaultPublicationUsefulChanges

The comment on the change is:
Updated "Allow users to override checkouts by other users"

------------------------------------------------------------------------------
  
  '''Why?''' 
  
- When working with Lenya it can happy very easily that a user impicitly checks 
out a resource by choosing "Edit with ..." from the Menu only to find out that 
we or she hit the wrong page and to get back immediately with the browser's 
"Back" button. In that case the page remains checked out and it unaccessible to 
other users wanting to edit it. The same holds true if the user looses his or 
her session while editing. 
+ Lenya users often begin to edit a document (impicitly checking it out) but 
fail to exit the editor normally -- either by using the browser's Back button, 
by exiting the browser, or by letting the session time out.  This leaves the 
document in a "checked out" state, and only that same user can subsequently 
re-enter the document in the editor.  To others, the page will be locked and 
uneditable.
  
+ Of course, overriding someone else's checkout circumvents the purpose of the 
checkout, and the original editor may loose any unsaved changes.  But in most 
environments the ability to override another's checkout is essential to normal 
web site operations.
- The same use will have no problem to edit the page after logging in again, 
because Lenya only records '''who''' has checked out a page. But as Lenya 
because of it's zero client footprint is often used for websites that get 
edited by people all over the world it can be quite annoying if you have no 
mean to edit a page because someone left it checked out and that someone is not 
in front of a system to check it back it.
- 
- Of course overriding someone else's checkout breaks the concept in the first 
place, but one could still use means of communication to first ask that person 
for permission to override the lock.
  
  '''How?'''
  
  '''Note: The approach here is not very clean ... but it works!'''
  
+ First of all, you need to decide what "unlock" interface suits your needs:  
1) an "Unlock" button on the error page that tells you that the page is locked 
by another editor, or 2) a menu entry in the Site tab.
+ 
+ === Interface 1: Unlock Button on Error Page ===
+ 
+ === Interface 2: Unlock Menu Item on Site Tab ===
+ 
- First of all, you need to have a menu entry. This is done by inserting a new 
block into the file {{{lenya/pubs/<your-pub>/config/menus/generic.xsp}}}:
+ This is done by inserting a new block into the file 
{{{lenya/pubs/<your-pub>/config/menus/generic.xsp}}}:
  
  {{{
        <block authoring="false">

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to