Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-13 22:38:10

lolfr
New Member
From: France
Registered: 2004-04-25
Posts: 6
Website

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

#3 2006-07-13 22:51:14

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

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

#4 2006-07-13 23:02:33

lolfr
New Member
From: France
Registered: 2004-04-25
Posts: 6
Website

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

Board footer

Powered by FluxBB