N3riu2
1
Hey you folks,
i´ve a problem adding the target:_blank attribute to a link.
I get the Link from *.yml in this way:
++++++++++
website:
label: Website
type: url
placeholder: http://
++++++++++
In my template i get the URL in this way:
++++++++++
<?= $page->website()->kirbytext() ?>
++++++++++
I hope anyone could help me adding target:_blank to this links.
Of course i´am an absolutely php-Gimp 
Thank you in advance.
Martin
Using kirbytext here does not make sense. Solution:
<a class="link" href="<?= $page->website() ?>" target="_blank"><?= $page->website() ?></a>
Edit: Added the missing href attribute 
1 Like
N3riu2
3
Hey Texnixe,
it seems this code doesn´t transport the href="*"
Please look at this.
<a href="<?= $page->website() ?>" target="_blank"><?= $page->website() ?></a>
It works fine, but i dont know if its correct.
Thank You.
Oopsy daisy! I probably didn’t have enough sleep.
Yep, that’s perfect!
N3riu2
5
Thank you for this amazing! fast solution.
You´re god 
cucu
1 Like