Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-06-29 08:09:25

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

cbe_if_variable : if_variable for multiple values

cbe_if_variable allows to compare a variable against a single value just like if_variable, but also against a list of values (comma-separated list by default) like this:

<txp:cbe_if_variable name="thevar" value="somevalue,othervalue">
  ...
</txp:cbe_if_variable>

<txp:else /> supported, and two addtionnal tags provided: cbe_if_variable_exists and cbe_if_variable_empty

Help and download

Offline

#2 2011-06-30 06:36:34

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

v0.1.1 today : example fix

Offline

#3 2011-07-01 06:43:46

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

v0.2 released !

Added the attribute match, allowing the plugin to work like if_custom_field.

A feature requested by sacripant.

Offline

#4 2011-07-01 09:15:04

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

Re: cbe_if_variable : if_variable for multiple values

Very productive, in a few days! Added into txp-fr.net with french translation. Are you available for other projects? ;)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#5 2011-07-01 09:44:14

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: cbe_if_variable : if_variable for multiple values

Cool. A little brother for smd_if.
Have you added your plug’in to “textpattern.org”? I have not find.

Offline

#6 2011-07-01 12:03:01

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

Pat64 a écrit:

Very productive, in a few days! Added into txp-fr.net with french translation. Are you available for other projects? ;)

thank you !
Depends You know where to find me :)

sacripant a écrit:

Have you added your plug’in to “textpattern.org”? I have not find.

I haven’t. I’m not sure if inscriptions are still opened, see register page.

Last edited by CeBe (2011-07-01 13:14:38)

Offline

#7 2011-07-01 12:24:42

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,415
Website GitHub

Re: cbe_if_variable : if_variable for multiple values

CeBe wrote:

[textpattern.org] I’m not sure if inscriptions are still opened

I can add an account for you and send you the login details. Is your forum e-mail address the one to use? Sorry about the fact that the .org site is a mess. I was supposed to have it fixed up last year but… it just hasn’t happened yet due to one thing and another.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2011-07-01 13:19:29

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

Bloke a écrit:

I can add an account for you and send you the login details.

That’s what I call reactivity :)

Is your forum e-mail address the one to use?

Yes, it is, thank you !

And thanks to the team too for all the good work (that’s a bit off topic but I had to say it somewhere).

Offline

#9 2011-07-04 17:42:26

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: cbe_if_variable : if_variable for multiple values

Claire, the download link on textpattern.org points to cbe_if_article_released.

Offline

#10 2011-07-04 18:34:29

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

Ooops … copy/paste nuisance :)
Thanks for pointing this out, it’s now fixed.

Offline

#11 2015-07-01 09:21:05

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: cbe_if_variable : if_variable for multiple values

Hi,
I’m discovering this plugin only 4 years after it was published and 6 years after my initial request :o
It’s working beautifully, thank you CeBe!!

Offline

#12 2015-07-06 09:04:47

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_if_variable : if_variable for multiple values

Haha :D
Great, old plugins are still alive!

Offline

Board footer

Powered by FluxBB