Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-17 01:45:35

parlour
Member
From: Germany
Registered: 2006-09-01
Posts: 20

Repurposing Image Title Or Alt-Text

I’m making a website at the moment where every article gets its own article image. Those pictures all have a description directly below them. (See for yourself) At the moment I’m doing that with a custom field.

It would be a lot better if I could somehow use the image’s alt-text or title for the description. Is that possible?

Offline

#2 2007-12-17 02:15:30

parlour
Member
From: Germany
Registered: 2006-09-01
Posts: 20

Re: Repurposing Image Title Or Alt-Text

Sorry, I found already out all by myself. upm_image can do what I want. (This plugin will let you do anything you ever wanted to do with images anyway, so I don’t really know why I didn’t look if it can do it.)

This is how it works:

<txp:upm_article_image><txp:upm_img_caption /></txp:upm_article_image>

Actually that’s one of the examples in the plugin’s help. I don’t know why I didn’t see it.

Offline

Board footer

Powered by FluxBB