Hello,
I switched from kirbytext field to a writers field in my panel recently.
Everything is working except: link-titles are not shown in the rendered html document (s. attached screenshot).
I tried several things, but could not make it work … what am I missing?
Thanks, chris
What’s your template code? What got stored in the content file?
Hello,
this is my template code
<?php snippet('header') ?>
<main class="main">
<div class="container-main-image">
<?php foreach ($page->images() as $image): ?>
<img
alt="<?= $image->alt() ?>"
src="<?= $image->resize(2000)->url() ?>"
>
<?php endforeach ?>
</div>
<div class="container-main-text">
<?= $page->text() ?>
</div>
</main>
<?php snippet('footer') ?>
My content file:
...
Text:
<h2>Gesundes Team durch Führungs-Kraft</h2>
<p>Gruppen und Teams (and so on ... ) <br></p><p>
<a href="/@/page/Ju2hFPiPb4blNdTw" title="Mögliche Themenschwerpunkte">/@/page/Ju2hFPiPb4blNdTw</a>
I guess the syntax of the a href is wrong … the title is not at the correct position …
When I change …
"title="Mögliche Themenschwerpunkte">/@/page/Ju2hFPiPb4blNdTw</a>"
to
"title="Mögliche Themenschwerpunkte">Mögliche Themenschwerpunkte</a>"
it is obvious, that it works …
So thanks, your question helped me to dig deeper:) But why the wrong a href is created … me don’t know …
Thanks and regards, chris
What did the original content look look like when you still had the textarea field? The syntax itself is correct, also the title, but I guess you mean the link text is wrong and should be the same as the title (which doesn’t really make sense either (to have the same title attribute value as the link text, but that is another story.)
1 Like
Ah … I guess I mixed “title” of a link with “text” of a link … 
This is the content in the (old) textarea field:
(link: page://Ju2hFPiPb4blNdTw text: Mögliche Themenschwerpunkte)
… which I like to get in also the (new) writers field.
But I understand now, that “title” and “text” are not the same, my mistake.
Is there a way to get same result text link in the writers field like in the textarea field?
But in the link creation field of the writers field I just see the link option, title and open in new window … I cannot select or write a text … ?!
k, I got it … I just write a text, select the text and the create the link …

Now it works … THANKS!