Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-06-13 08:04:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,718
Website

links in short-tags

I am studying the image with caption shortcode in combination with the escape attribute and I can not see of any way that I can include html links in the caption. Can someone point to me what I am missing?

This is what I am trying to achieve

<txp::figure id="130" class="photo" caption="The throne of <a rel="external" href="https://en.wikipedia.org/wiki/Zeus">Zeus</a> at Mount Olympus." />

Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#2 2018-06-13 09:05:46

etc
Developer
Registered: 2010-11-11
Posts: 2,729
Website

Re: links in short-tags

Quotes, sir! Try

<txp::figure id="130" class="photo" caption='The throne of <a rel="external" href="https://en.wikipedia.org/wiki/Zeus">Zeus</a> at Mount Olympus.' />

etc_[ query | search | pagination | date | tree | cache ]

Offline

#3 2018-06-13 11:32:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,718
Website

Re: links in short-tags

That was it! How could I have missed that one:)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

Board footer

Powered by FluxBB