Tags:
create new tag
, view all tags

Question

Is it possible to place a "link" on a TWiki page, that when clicked, will place me in "edit" on the target page instead of having it rendered?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux
Web server: Apache/2.0.40 (Red Hat Linux)
Perl version: 5.8.6
Client OS: Windows XP Pro
Web Browser:  
Categories:  

-- BradTaylor - 18 Jan 2005

Answer

Yes, put a link to

<a href='http://www.twiki.org/cgi-bin/edit/TARGET_WEB/TARGET_TOPIC?time=%GMTIME{"$day$hour$minutes$seconds"}'>

(replace TARGET_WEB & TARGET_TOPIC by your value). The GMTIME parameter is here to generate a new url on each edit to prevent the browser re-using an old contents.

See a sample at: http://wikix.ilog.fr/wiki/bin/view/Koalaskin_tasklist/WebHome (teh edit icon provides a direct edit link)

-- ColasNahaboo - 18 Jan 2005

If placed in a skin, write this:

[[%SCRIPTURL%/edit%SCRIPTSUFFIX%/%BASEWEB%/%BASETOPIC%?t=%GMTIME{"$day$hour$minutes$seconds"}%][Edit]]

The "Edit" text can be replaced by an image.

-- PeterThoeny - 19 Jan 2005

We ought provide something simpler and more elegant than this.

%PAGEEDIT{web.topic, "Edit"}% perhaps.

-- MartinCleaver - 19 Jan 2005

or just %EDIT%

-- MattWilkie - 19 Jan 2005

 
Topic revision: r6 - 2005-01-19 - MattWilkie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.