Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 16:15:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,329
Website GitHub Mastodon Twitter

wrapclass in images

I cannot see a wrapclass attribute in the images tag, nor does it work if I add it.

<txp:images category="my_category" wraptag="ul" wrapclass="my_ul_class" break="li" class="my_li_class">
<txp:image loading="lazy" />
</txp:images>

Although there are other ways to achieve this, am I the only one who thinks that it should be included in our armoury?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 Yesterday 16:24:12

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,047
Website GitHub

Re: wrapclass in images

Hi Yiannis,

It’s the other way around: class is already the wrapclass and there is a breakclass attribute for the break element if appropriate:

<txp:images wraptag="ul" class="my_ul_class"
            break="li" breakclass="my_li_class">
    <txp:image loading="lazy" />
</txp:images>

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB