Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-02-05 20:36:53

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Image links - what is expected?

Few image tags (like <txp:image /> etc) link by default to ?context=image&p=id URLs. These links seem to merely land on the home page. Is this the expected result?

Ah, seemingly some image tags can detect p parameter, so it’s probably okay.

Offline

#2 2021-02-05 23:47:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,387
Website GitHub

Re: Image links - what is expected?

The old image tags used to work that way to retrieve the full-size image via the URL, so I think this behaviour is merely a holdover to support the ancient <txp:image_index> and <txp:image_display> tags – long since decommissioned.

It really should be changed at some point to render a proper image link that the more modern tags can interpret. Honestly, I thought <txp:image> had been retrofitted to accept the legacy URL format and handle it, but maybe it hasn’t been done, or has been broken in recent iterations of the taghandlers. No great loss, but as I don’t think anyone’s going to be using the old tags any more we could probably safely change the default <txp:images> to output links to something more useful. No idea what that might be!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB