Posted by Torsten Fabricius 28 Oct 2010 22:03 UTC Hi, for ex in a menu: write Copy to clipboardhttp://foo.bar" target="_blank or http://www.foo.bar" target="_blank -> Domainname+doublequotes+space+target+equal+doublequote+underscore+blank That will open Links in new tabs or new windows, depending on the settings of the users browser. Cheers, Torsten
Posted by tehonu 07 Mar 2016 03:56 UTC Hi: I just tried it but I'm getting the following error when i type http://wwwmydomain.com/index.php" target="_blank on the URL field: Error Notice: invalid variable value: $_POST%22url%22 = http://wwwmydomain.com/index.php" target="_blank when saving the menu option. I'm using a TikiWiki 14.0. Any idea why will be welcomed Thanks, Ricard
Posted by Rick Sapir / Tiki for Smarties 07 Mar 2016 17:51 UTC Did you enable the Allow HTML... option? Please see the docs for details. Note that this is a potential security issue, so you may want to use the JQuery method instead. Again. pleasesee the docs for details. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
Posted by tehonu 08 Mar 2016 01:45 UTC Thanks Rick: Yes, Allow HTML is allowed as per screenshot Capture1 Once allowed I'm not getting the invalid variable error but it redirects the browser to www.mydomain.com/index.php"%20target="_blank which is wrong. I think the issue is I'm not sure if I'm writing the " target="_blank at the right place. Should it go on the URL field? I tried both with " and without it. Or should I place it somewhere else. I already checked the JQuery option, but having t hardcoded will not be easily maintenable for a new site (things will change, options added and deleted, so I should be playing around with the code). Probably once the site is stable. Thanks, Ricard Capture1.JPG (47.74 Kb)