Open external in new Window/Tab with Kirbytext

Is it possible to open external links in a new window/tab (target=“_blank”) by adding a parameter to the (link: http://…) tag in Kirbytext? Cannot find a hint in the docs here http://getkirby.com/docs/content/text#links

Or do i need to code a custom tag?

Sure, just put

(link: http:abc.com  target: _blank)

These are the available options:

    'text',
    'class',
    'title',
    'rel',
    'lang',
    'target',
    'popup'
4 Likes

cool, thanks for the list.

i also found the full docs for this tag here: http://getkirby.com/docs/cheatsheet/kirbytags/link

Is there any easy way to apply target: _blank to all external links automatically when calling ->kt() or ->kti() ?

Hm, you could create a custom link tag, and in your custom code determine if the given link is external or not and then apply the target attribute accordingly.

If you really want that behavior…