Tags:
create new tag
view all tags

Question

Is there a way, when a user edits a topic, to automatically have a --- and the user's signature already at the top. So when the user clicks edit, the cursor is positioned above an already entered:

-- WikiName - 03 Dec 2003


Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Redhat Linux 7.3, kernel 2.4.20-20.7smp
Web server: Apache 1.3.27
Perl version: 5.6.1
Client OS: all
Web Browser: all

-- GeraldManipon - 03 Dec 2003

Answer

Sure! Create a WebTopicEditTemplate page in each web that you want, and add whatever boilerplate text to that page you desire. If you look at that page for any web you will get lots of ideas. (If you don't see what you want on this web, try the Wikilearn web.)

-- RandyKramer - 03 Dec 2003

The one limitation that I've seen with implementing what you are asking for with WebTopicEditTemplate is that you can't control where the cursor is positioned. It inevitably goes to the end of the template topic so what happens with new users is that they tend to input their content after their signature.

-- LynnwoodBrown - 04 Dec 2003

To place the cursor, you can use a JS script that runs when the page has loaded, e.g. in the body tag or after the textarea in the edit template. For tips on how to actually place it, i suggest you study the JS that is used by the IEJS skin, or search the web for coding resources.

-- TorbenGB - 05 Dec 2003

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2004-02-01 - PeterThoeny
 
  • 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.