Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-08-10 03:10:20

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

[archived] tcm_if_article_image ... just another conditional

Notice: This thread is archived, this can be achieved with a combination of txp tags now.

**********************************************************

download

it will output the contained text if there is an article image. use it in the article form or it wouln’t work. ‘nuff said.

(hope noone has done this… I couldn’t seem to find any info on it)

Last edited by els (2009-04-24 23:31:33)

Offline

#2 2004-08-17 14:53:02

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] tcm_if_article_image ... just another conditional

I did an update since I personally needed an else statement.

Read article


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#3 2005-01-02 19:40:10

zarprey
Member
From: Minneapolis, MN
Registered: 2004-04-11
Posts: 13
Website

Re: [archived] tcm_if_article_image ... just another conditional

Ok, I think I’m a bit dense, but how exactly do you go about using this plug in?

EDIT:
errr. forget it. I got it now.

Last edited by zarprey (2005-01-02 19:41:57)

Offline

#4 2005-04-11 15:14:30

molly
Member
From: Virginia
Registered: 2004-08-15
Posts: 44
Website

Re: [archived] tcm_if_article_image ... just another conditional

I’m a newbie to textpattern.. Would someone give me a “for dummies” introduction… how do I use this tag?

Thanks in advance,
Molly

Offline

#5 2005-04-11 17:13:45

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [archived] tcm_if_article_image ... just another conditional

i could be wrong, and haven’t yet used the plugin myself..
but my impression is that this is a conditional to see if there is an image in that article.. if there is, then you can have information output such as “See the picture below” or something… but if there is no image, then you don’t want it to say that.

see the usage example


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#6 2005-04-11 23:45:22

molly
Member
From: Virginia
Registered: 2004-08-15
Posts: 44
Website

Re: [archived] tcm_if_article_image ... just another conditional

Thanks Alicson.. hmm.. what I’m trying to do may not be doable.. which is to output a “table of contents” type list of articles which have images associated with them, and a separate list of those that do not. That is what I am having trouble with. Would this tag even be useful for that?

Molly

Offline

#7 2005-10-04 14:47:35

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Re: [archived] tcm_if_article_image ... just another conditional

Perfect, thanks! It’s simple, but it’s just what I needed. (I wonder if this functionality is packaged in another plugin, though.)

Offline

#8 2009-03-21 20:09:35

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: [archived] tcm_if_article_image ... just another conditional

does anyone know where i can get the revised article image plugin ? anything else that does an “else” conditional these days? this thread is from four years ago ;)

edit: just found ras_if_article_image

Last edited by mrtunes (2009-03-21 20:12:15)

Offline

#9 2009-03-22 01:16:43

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [archived] tcm_if_article_image ... just another conditional

I think this is core now. do an svn update.

Offline

#10 2009-04-13 01:58:19

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: [archived] tcm_if_article_image ... just another conditional

mrdale wrote:

I think this is core now. do an svn update.

does that mean there is now a tag that says <txp:if_article_image> ?

Offline

#11 2009-04-13 06:06:12

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [archived] tcm_if_article_image ... just another conditional

Its coming in TXP 4.09, but until then you can grab the SVN development version.

Offline

Board footer

Powered by FluxBB