Feature #17595
closedPages of type "External link" should allow to opened in new tab or window
0%
Description
It is generally considered good practice to open external links in a new tab (or a new window). However, there does not seem to be any possibility to have a page of type "external link" open a new tab..
May I suggest that the 'page' table gets a flag for "open in external tab or window", and the page properties form gets a corresponding form field?
(issue imported from #M6328)
Updated by Benni Mack about 17 years ago
Hey,
isn't this implemented already? There is a field in the page properties called "target" (it's on the 2nd options list). So if I set this to "_blank", my firefox browser opens up a new tab just I would expect this to be. This field is avaiable for any page type I think. Means: I could do this for internal links or even normal pages.
So, let me know if I misunderstood something or if we can close this issue.
Updated by H. Hahn about 17 years ago
Thanks for the hint. I don't understand what you mean by "2nd options list", but I did find the "target" field in phpMyAdmin and set it to "blank". (And I now see that in the page properties form its name is translated (I use the Dutch version) to something which is correct but is very likely to be overlooked in this context...)
(Is there any chance that Typo3 will ever get "mature" documentation and more extensive online help with such forms...?)
However, it did not work in my case, as I am using my own menu generator.
As a workaround, I tested the alias for that particular page and if it had one specific value, I added "target = '_blank'" to the corresponding menu item.
Instead, I can now test for this "target" value. I presume the original Typo3 menu fucntions do something similar.
However, the problem remains that "target=..." is flagged by the HTML validator as invalid XHTML 1.0. The generally suggested workaround for this, viz. using "rel = 'external'" and using a Javascript function to set target = "_blank" after the link is hit, does work in normal website pages, but for some reason not in the menu. I will have to look into that, I presume.
Updated by Moreno Feltscher about 17 years ago
You can find the "2nd options list" at the end of your external site configuration (just enable it, after this you see the "target" field).
Updated by Christian Kuhn over 15 years ago
Resolved, no change required:
TS setup does the trick with
config.extTarget = _blank