Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-14 13:42:22

daver89
Member
From: Walsall, UK
Registered: 2007-12-02
Posts: 22
Website

display category of images

Hello,

I want to display 5 images from a category in the image tab.

Similar to the following article line but for images:-
<txp:article_custom category=“home” limit=“5” />

any help is much appreciated.

dave

Offline

#2 2008-10-14 13:50:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: display category of images

The upm_image plugin is probably your best bet. I think that can pull out categories but I’ve never tried it. Failing that, wet_for_each_image definitely does it.

Last edited by Bloke (2008-10-14 13:53:56)


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

#3 2008-10-15 20:33:43

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

Re: display category of images

No, upm_image can display the category an image is from but it won’t pull a category.


Stuart

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

Offline

#4 2008-10-15 20:53:07

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: display category of images

Bloke, it seems you don’t want people starting to use your plug-in, right? ;)
I need to use both (smd_gallery and upm_image) in tandem to be able to pull a category. I don’t think upm_image alone could do the task.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2008-10-15 21:01:18

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

Re: display category of images

He’s too modest like all us Midlanders. ;)


Stuart

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

Offline

#6 2008-10-15 21:25:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: display category of images

thebombsite wrote:

He’s too modest like all us Midlanders. ;)

Hehehe. It just seemed overkill in this instance. By all means, unleash the beast if you have a stun gun to put it in its place when it snarls :-)


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

#7 2008-10-17 11:28:04

daver89
Member
From: Walsall, UK
Registered: 2007-12-02
Posts: 22
Website

Re: display category of images

Thanks for all your help. I used wet_for_each_image and it seems to work great :)

Offline

Board footer

Powered by FluxBB