Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-07-26 17:37:09

pexman
Member
Registered: 2016-02-27
Posts: 63

automatic programming

Hi,
I would like to receive such lines.

<div><img src=“https://arteurope.de/images/761t.jpg”/><a href=”#lightbox-1”>761</a></div> …

I tried:

<div><txp:images id=“706,299,300” break=“br” ><img src=”<txp:image_url thumbnail=‘1’ />”><a href=”#lightbox-1”><txp:upm_image ><txp:upm_img_id /></txp:upm_image ></a></txp:images></div>

but got:

<div>

<img src=” https://arteurope.de/images/706t.jpg „&gt; <a href=”#lightbox-1”></a><br />
<img src=” https://arteurope.de/images/299t.jpg „&gt; <a href=”#lightbox-1”></a><br />
<img src=” https://arteurope.de/images/300t.jpg „&gt; <a href=”#lightbox-1”></a><br />

..</div>

„&gt; – why this? And how can I fix that?

In the anker-tag should display the id of the image, but upm_image_id doesn`t work. How can I get out the id of the image?

Offline

#2 2024-07-26 18:05:22

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,734
Website

Re: automatic programming

You should be able to do that nowadays without upm_image. Try this:

<txp:images id="706,299,300" wraptag="div" break="br">
	<img src="<txp:image_url thumbnail='1' />">
	<a href="#lightbox-1"><txp:image_info type="id" /></a>
</txp:images>

TXP Builders – finely-crafted code, design and txp

Offline

#3 2024-07-26 18:13:21

pexman
Member
Registered: 2016-02-27
Posts: 63

Re: automatic programming

Thank you very much. How many hours have I spent tinkering now? So simple. Thank you.

Offline

Board footer

Powered by FluxBB