Tags:
create new tag
view all tags
I think each page should have a "ViewSource" link as well as an "Edit" link.

  • Sometimes you just want to cut-n-paste something from one page to another, but you do not need an edit lock.
  • Earlier revs dont allow you to edit, so you can't see the source.
  • This would be very handy for restoring old revs.
    • (Like the way some moron has whacked the codev front page.)

-- TWikiGuest - 28 Nov 2000



That would be a useful enhancement. Note that with the 01 Dec 2000 release you can edit a page and then "Cancel" out of edit, removing the edit lock so that other people don't get blocked for an hour.

Fortunately it is very easy to undo a revision of persons who deliberately delete some text (using an undocumented command reserved for TWikiAdminGroup members). Follow up in DevOpinionPoll.

-- PeterThoeny - 28 Nov 2000

I've made a small script 'show' which lets you see the source of any revision. The script is based on the 'edit' script but doesn't lock and can handle the rev=1.x param.

Change the following line in the 'view' script.

<         # disable edit of previous revisions
<         $tmpl =~ s/%EDITTOPIC%/Edit/go;
---
>         # allow to show the original text
>         $tmpl =~ s/%EDITTOPIC%/<A href=\"$scriptUrlPath\/show%SCRIPTSUFFIX%\/%WEB%\/%TOPIC%\?rev=1.$rev\"><B>Show<\/B><\/A>/go; 

Then install the 'show' and 'show.tmpl' files. Now you can show the source from older revisions. For me, as a newby to TWiki it is a good tool to look at the formatting someone else had done some revs ago.

-- StefanScherer - 29 Dec 2000

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatext show   manage 9.5 K 2000-12-29 - 09:54 UnknownUser the 'show' script
Unknown file formattmpl show.tmpl   manage 2.1 K 2000-12-29 - 09:55 UnknownUser the 'show' template
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2001-11-21 - MikeMannix
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.