Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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.
Offline
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
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
Re: display category of images
Thanks for all your help. I used wet_for_each_image and it seems to work great :)
Offline
Pages: 1