SID-00998: How to open a new window when creating a new topic
| Status: |
Answered |
TWiki version: |
|
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
|
Last update: |
15 years ago |
I use this TML to create another topic for a specific work function...
%ICON{newtopic}% [[%SCRIPTURLPATH{edit}%/%WEB%/IoM%DISPLAYTIME{"$ye$mo$day$hours$minutes$seconds"}%?templatetopic=IomTemplate;topicparent=%TOPIC%;t=%SERVERTIME{"$day$hour$min$sec"}%;action=form][Create new IOM]]
(Which is>>>
Create new IOM <<<and naturally won't work here w/o the supporting template and form but does give an example of what I'm trying to do...)
I'm now being asked to have this topic created in a new window and not in the existing window.
Using HTML you do the following to open a new window...
<A HREF="http://www.yourdomain.com" TARGET="_blank">Your Text</a>
How would you do the same in TML while creating a new topic?
--
JeffreyLovretich - 2010-10-14
Discussion and Answer
Simply change the TWiki link into an HTML 'a' tag:
<a href="%SCRIPTURLPATH{edit}%/Support/IoM%DISPLAYTIME{"$ye$mo$day$hours$minutes$seconds"}%?templatetopic=IomTemplate;topicparent=%TOPIC%;t=%SERVERTIME{"$day$hour$min$sec"}%;action=form" target="_mytop">Create new IOM</a>
--
PeterThoeny - 2010-10-15
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.