Link in a caption

Hello,

I need an caption with a link in the text.

I tried:

(image: Bild.jpg caption: Bildbeschriftung (Hintergrund: (link: https://quelle.de/karte.pdf text: Auszug aus Karte )))

and

(image: Bild.jpg caption: Bildbeschriftung (Hintergrund: (<a href="https://quelle.de/karte.pdf">Auszug aus Karte</a>))

But both doesn’t work.

Regards

FUSS

No, and this won’t work. First of all, you have to somehow replace parenthesis used within Kirbytags and then use a post filter to turn them into parenthesis again. And secondly you cannot nest Kirbytags.

Or you just leave out the parens:

(image: test.jpg caption: Hintergrund: <a href="https://quelle.de/karte.pdf">Auszug aus Karte</a>)
1 Like

I have no problem with

<a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/(embAttOrg)/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a>

in the normal text.

I have no problem with

(image: test.jpg caption: Hintergrund:  <a href="https:fake.de/karte.pdf">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a>)

But the combination doesn’t work:

(image: test.jpg caption: Hintergrund:   <a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/(embAttOrg)/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a>)

@FUSS:
You can not use normal parenthesis in a Kirby tag!
Parenthesis insite kirbytags are not working.

Look at https://forum.getkirby.com/t/parenthesis-in-a-link-produces-a-wrong-link/1832/5,
look there for the different coding, e.g. “ %28 ” and “ &#x28; ” for the “(”.

1 Like

Ok.

When I uses

(image: test.jpg caption:  &#x28;  Hintergrund:   <a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/%28embAttOrg%29/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a>) &#x29;

kirby prints a " )" in the following line and ( .

:frowning:

You have to replace the inner extra parens, never the outer, otherwise Kirby won’t recognise the Kirbytags anymore. I would use a Kirbytext post filter, instead of the solution suggested above, then use square brackets or curly braces inside your tag where you would use parenthesis.

1 Like

Try:

(image: test.jpg caption: Hintergrund: <a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/%28embAttOrg%29/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a>) 

Yes, that was my plan. Some things are too obvious.

But

(image: test.jpg caption:  &#x28;Hintergrund:   <a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/%28embAttOrg%29/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a> &#x29;)

or

(image: test.jpg caption:  %28Hintergrund:   <a href="https://dosys01.digistadtdo.de/dosys/gremrech.nsf/%28embAttOrg%29/B05F2CD8A45BD0C9C1257DF6005AD83D/$FILE/Anlagen_00479-15.pdf?OpenElement">Auszug Drucksache Nr. 00479-15 der Stadt Dortmund</a> %29)

doesn’t work. The parentheses for the reference aren’t identifed.

A Kirbytext filter for every caption with a reference? It seems to make sence for my e-mail adress e. g.

So, I have to waive the parentheses for the reference … Or I use [ and ].

Thank you for your answers.

1 Like