Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
wet_if_status: Conditional tags checking for "live" or "sticky"
wet_if_status
contains two conditional tags which check for an article’s status being either “live” or “sticky”, respectively. Usage is plain and simple:
<txp:wet_if_live>...</txp:wet_if_live>
<txp:wet_if_sticky>...</txp:wet_if_sticky>
Both tags are bound to be used in an article context, either as part of an article form or inside the body/excerpt.
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
Hi wet,
Your plugins are great, so I sent you a donation through your site. I hope you keep up the wonderful work!
It would be nice if there were a good way to reward the TXP developers and plugin developers through a central donation service, no? We did it last Christmas as I recall – Alexandra organised it correct?
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
Thanks a lot for those kind words, I am glad you found good use of my work.
Re: rewarding the developers.
Sencer’s got an Amazon wish list, Alex is accepting donations on his site, Pedro maintains quite a long list of desires, and I once stumbled across Mary’s somewhere I really can’t recall.
So there’s no lack of opportunities…
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
Hi Robert
This looks like just what I need, but it’s throwing me an error.
Call to undefined function: assert_article() in /public_html/admin/lib/txplib_misc.php(459) : eval()'d code on line 13
I’m just finishing off a fairly big project that’s running on 4.03 and it’s too close to launch to upgrade – does this plugin require 4.04? I assmume so, but it doesn’t say anywhere so i thought I’d check!
thanks very much – tis a good addition to the toolbox regardless
Stu
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
This plugin runs on 4.0.4, sorry.
But you can easily remove this single line from the plugin’s PHP code, which serves merely as a measure inhibiting improper tag usage:
assert_article();
This line occurs two times, once per tag.
I think this is the only dependancy on features introduced with 4.0.4, so you might have success with 4.0.3 after this amendment.
Last edited by wet (2007-02-07 08:13:07)
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
bloomin marvelous
cheers
:o)
Offline
Re: wet_if_status: Conditional tags checking for "live" or "sticky"
Great plugin… saved my ass! Thanks!
Offline