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
--
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