Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-10 20:41:36

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

multiple article images

I think I’m right in thinking that txp will only display the one image associated with an article.

I need to be able to enter a coma separated list of image ids in the “Article Image” field and then display all those images when the article is displayed front end.

Is there a recommended plugin that will do that?

Offline

#2 2011-03-10 20:55:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: multiple article images

You shouldn’t need a plugin for this. Try investigating the <txp:images /> tag


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2011-03-10 21:01:35

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Re: multiple article images

Found upm_image plugin which seems to be what I’m looking for.

Offline

#4 2011-03-10 21:05:52

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Re: multiple article images

thebombsite wrote:

You shouldn’t need a plugin for this. Try investigating the <txp:images /> tag

I did look at that tag but it doesn’t seem to do what I want it to do. It doesn’t list images associated with an article, without the id attribute it just lists all images. There doesn’t seem to be an attribute that specifies wether to list article images

Offline

#5 2011-03-10 21:08:04

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: multiple article images

leafy_loader wrote:

Found upm_image plugin which seems to be what I’m looking for.

Should you convert to core tags: for keeping a predefined order in your image sequence note this post


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2011-03-10 21:14:12

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: multiple article images

Believe me when I say that <txp:images /> does everything that the upm_images plugin does. It is a very nice plugin but it is now redundant as I think you will find Mary agrees.

Last edited by thebombsite (2011-03-10 21:17:02)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2011-03-10 21:15:47

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Re: multiple article images

uli wrote:

leafy_loader wrote:

Found upm_image plugin which seems to be what I’m looking for.

Should you convert to core tags: for keeping a predefined order in your image sequence note this post

Ah ok, didn’t realise the “Article Image” field could be referenced with <txp:custom_field name=“article_image” /> .

That works, thanks

Offline

#8 2011-03-10 21:18:52

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: multiple article images

leafy_loader wrote:

It doesn’t list images associated with an article, without the id attribute it just lists all images. There doesn’t seem to be an attribute that specifies wether to list article images

An example of multiple images in an article image field, and the txp:image tag being used to show them.

edit: Oops – sorry. Looks like I was slow on the post and you figured it out :)

Last edited by maverick (2011-03-10 21:20:16)

Offline

Board footer

Powered by FluxBB