Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
find out if there are multiple images associated with an image
is there a way to check if there is more then one image associated with an article?
i imagine some php snippet could do it..? or is this already possible with upm_image (which i’m currently using for the output)?
basically i want to be able to present different formatting of the entire article depending on these two options (“one image” vs “multiple images”)…
any help is appreciated!
Last edited by sthmtc (2007-03-22 09:43:01)
Offline
#2 2007-03-22 22:25:22
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: find out if there are multiple images associated with an image
Textpattern doesn’t have multiple article image ability.
My plugin doesn’t have any way of doing it either, but I could add a new conditional tag to it.
Offline
Re: find out if there are multiple images associated with an image
Mary wrote:
My plugin doesn’t have any way of doing it either, but I could add a new conditional tag to it.
that would be totally awesome! :)
Offline
Re: find out if there are multiple images associated with an image
Hello Sven
I have wrote a plugin for an artist client of mine who wanted to show multiple images to one article.
After searching in vain I decided to write my own plugin. This is my first attempt at a plugin but it worked well.
I don’t know if Mary has modified her plugin but for now you could try this. I have included some help text.
Anthony
Forever learning.
Offline
Re: find out if there are multiple images associated with an image
thanks for sharing anthony, but that’s not the problem. attaching multiple images works just fine with upm_image. i was asking for a way to find out (e.g. with a conditional tag) if there are multiple images attached or only one, and therefore being able to apply different formatting.
Offline
#6 2007-04-13 20:51:08
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: find out if there are multiple images associated with an image
By the way, I should have my plugin updated with this new functionality shortly.
Edit: Bah, what was I saying? I had already done so on the 30th of March.
Last edited by Mary (2013-01-24 17:28:54)
Offline