Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Offline
Re: cbe_if_variable : if_variable for multiple values
v0.1.1 today : example fix
Offline
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
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
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
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
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
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
Re: cbe_if_variable : if_variable for multiple values
Claire, the download link on textpattern.org points to cbe_if_article_released.
Offline
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
Re: cbe_if_variable : if_variable for multiple values
Haha :D
Great, old plugins are still alive!
Offline