Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-03 11:23:34
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Looking for latest image plugin.
I’m looking for a plugin (or a function) that will display the latest image that has been posted in an article.
Last edited by Nichod (2005-12-03 11:23:45)
Please try Textpattern for Aptana
Offline
#2 2005-12-04 06:45:30
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Ok. Perhaps this was a bit vauge.
The plugin would display the “article image” from the most recent article that contained one. It could be placed in a form and referenced in the layout for placement in a sidebar.
Please try Textpattern for Aptana
Offline
#3 2005-12-04 08:48:58
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: Looking for latest image plugin.
Would the image be an “Article image” (in advanced options) on simply included in the body ? The first solution would be easier I think and possible with no plugin.
It would be easy to do with a <txp:article_custom limit="1" sortby="Posted" sortdir="desc" keywords="image" />
or a <txp:article_custom limit="1" category="images" sortby="Posted" sortdir="desc" />
(using either catergory or keyword to store the information that there is an article image.
Of course would it would be better if there was a article_image="y"
setting in <txp:article_custom />
Last edited by Niconemo (2005-12-04 09:02:37)
Nico
Offline
#4 2005-12-04 10:47:05
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Ahhh! Simple! Beautiful. The elegance of txp. Thanks!
Please try Textpattern for Aptana
Offline
#5 2005-12-04 10:57:15
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Further question. Can an archive be created of the images themselves?
Please try Textpattern for Aptana
Offline
#6 2005-12-04 11:46:16
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Looking for latest image plugin.
A basic list, yes. See image_index and image_display. If you want something more complex you’ll need to look at plugins and/or use images in tandem with articles (and so take advantage of everything articles can do). Check the resources site (link above).
Offline
#7 2005-12-05 01:09:00
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Ok… I’m not sure this does what I want. I merely want all images displayed not just the catergories. This won’t seperate them into catergories only will it? Excuse my ignorance, a lot of TXP is elegant but it can be confusing as well.
Please try Textpattern for Aptana
Offline
#8 2005-12-05 11:02:29
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Now if the article image (in advanced options) is a the thumbnail of a full size image. Can this thumbnail be referenced as we are discussing and then link to the fullsize image?
Please try Textpattern for Aptana
Offline
#9 2005-12-06 01:49:32
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Looking for latest image plugin.
There’s isn’t much in the way of image management available by default.
Now if the article image (in advanced options) is a the thumbnail of a full size image. Can this thumbnail be referenced as we are discussing and then link to the fullsize image?
Not built-in, no. There are a couple plugins available that will that, so check the resources site.
I merely want all images displayed not just the catergories. This won’t seperate them into catergories only will it?
Yes, it would. I don’t know if there’s even an existing plugin that will do that, you’d have to check.
Offline
#10 2005-12-06 06:59:11
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Ok. For clarification. And to help me figure this out.
<code><txp:article_custom limit=“1” sortby=“Posted” sortdir=“desc” keywords=“image” /> or a <txp:article_custom limit=“1” category=“images” sortby=“Posted” sortdir=“desc” />
</code>
<br>
<code>article custom limit=“1”</code> : is specifying that only 1 will be displayed at once.
<code>sortby=“posted”</code> : will specify the most recent image. What would I place in here?
<code>sortdir=“desc”</code> : is this needed…seems to control the display of a list order?
<code>catergory and keywords=“images or image”</code> : this specifies the actual source of the image. either catergory or images (Articles?) with specific keywords. I feel that catergory would likely be the best. Now would I just place this as <code>catergory=“projects”</code> and then the most recent image from catergory would be referenced?
Really would be nice to have more control over accessing images, etc.
Brian
Last edited by Nichod (2005-12-06 11:03:35)
Please try Textpattern for Aptana
Offline
#11 2005-12-09 16:52:52
- Nichod
- Member
- Registered: 2005-06-06
- Posts: 119
Re: Looking for latest image plugin.
Ok. Can’t seem to get this to work as I’d like. I’m beginning to think this isn’t possible. I just want the most recent thumbnail from an article displayed in a sidebar.
Please try Textpattern for Aptana
Offline
#12 2005-12-09 17:09:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Looking for latest image plugin.
It will only show the thumbnail of the latest article (so if there isn’t one, nothing would show up), not the latest thumbnail of an article (a seemingly subtle, but major difference). To get that you’d need a plugin.
Offline
Pages: 1