Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#469 2018-10-27 17:15:27
Re: smd_if: Generic multiple if condition tests
Hi Destry,
Just to let you know that you can also do what you are trying to achieve without a plugin.
<txp:variable name="capt" value='<txp:images id='<txp:custom_field name="article_image" />' /></txp:images>' />
<txp:if_variable name="capt" value="">
<txp:else />
<figcaption>
<txp:image_info id='<txp:custom_field name="article_image" />' type="caption" escape="tidy,textile" />
</figcaption>
</txp:if_variable>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#470 2018-10-27 17:56:11
Re: smd_if: Generic multiple if condition tests
As usual, there are multiple roads to the doghouse.
I really need to learn those variable and evaluate tags better. I think I’ll go with the evaluate trick this time around.
Thank you.
Offline
#471 2020-01-12 10:18:26
Re: smd_if: Generic multiple if condition tests
Hello
Does this plugin work on Textpattern 4.8 Beta?
Admin-side theme: hive 4.8.0-beta
Active plugins:
smd_if-1.0.0
I get the warning message that it is not registered.
No idea what is wrong.
My php version is 7.2.10
Felix
Offline
#472 2020-01-12 10:27:17
Re: smd_if: Generic multiple if condition tests
Huh. Swear I registered this plugin’s tags. I’ll get it done today and release it, sorry.
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
#473 2020-01-12 10:38:21
Re: smd_if: Generic multiple if condition tests
Bloke wrote #321047:
Huh. Swear I registered this plugin’s tags. I’ll get it done today and release it, sorry.
I love you!
Felix
Offline
#474 2020-01-12 23:56:01
Re: smd_if: Generic multiple if condition tests
There you go. Try smd_if v1.0.0 which has the tag registered and a few other minor fixes.
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