Tags:
create new tag
view all tags

Question

DuplicateTopicNames shows how to use a timestamp (or a SpreadSheetPlugin random number to generate a random number at render time of the page that contains the "edit" link.

I would like the random/timestamp to be generated at click time so that when I open a 5 new topics at the same time in different tabs from the same initially rendered link all names are unique.

Any ideas how to make that happen? My only idea so far is a special "redirect" page that adds the unique part and then redirects to the edit script, any nicer solutions?

Also the onlynewtopic=on does not seem to work for me, is that supposed to be checked on rendering the edit page or on save? If that worked at edit or save (edit best) at least I wouldn't overwrite when saving the second page with the same name.

olec

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, SpreadSheetPlugin
Server OS: RH WS 3
Web server: Apache 1.3.33
Perl version: 5.8
Client OS: Fedora Core 3
Web Browser: Firefox 1.0.3
Categories:  

-- OleCMeldahl - 26 Apr 2005

Answer

I do not see an easy way to accomplish a new unique number when clicking on "create" on the same topic.

Regarding onlynewtopic flag, this assumes a topic exists already. A new topic in edit mode does not exist before you save it, thus the onlynewtopic flag cannot warn you of a new topic in edit mode.

-- PeterThoeny - 07 Jun 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-06-07 - 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.