Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
image for a new article or comment
I wonder if is it possible to automatically add an image (i.e. beside the title) when an article is new or when a new comment was post.
I actually use the custom field to add th image. But I have several author and sometimes they forgot to fill it.
So… if someone have an idea.
Thanx
Offline
#2 2006-07-13 22:50:49
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: image for a new article or comment
For new articles you can use csb_if_newer_than. Don’t know about comments, sorry.
Offline
Re: image for a new article or comment
For an article list, you could use the following:
<code>
<txp:article form=“new_article” limit=“1” />
<txp:article form=“older_articles” offset=“1” />
</code>
This will show a list of articles. The first article uses a form in which you add an image to show it’s new.
Offline
Re: image for a new article or comment
Thanx !! I’ll try the plug-in.
Still the comment problem…
Offline
#5 2006-07-14 14:43:35
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: image for a new article or comment
lolfr wrote:
Still the comment problem…
You could try and ask the plugin author if it could be adapted for comments as well…
Offline
Pages: 1