[SOLVED] Substitution bug & help

12 years 6 months ago - 12 years 4 months ago #181059 by pepperstreet
[SOLVED] Substitution bug & help was created by pepperstreet
Hello,
I am testing with your temporarily pre-patched plugin.foundation.php file from the forge.
Not sure if this behaviour should be fixed by this this file... I still have some strange substitution behavior with simple-select fields. (Or i am still too dumb for this stuff :whistle: )

IS NOT WORKING:
[cb:userfield field="cb_selecttyp" /]

WORKS:
[cb:userdata field="cb_selecttyp" /]

WORKS:
[cb_selecttyp]


IS NOT WORKING:
[cb:if cb_selecttyp="MyTestValue"]Show me this sample text.[/cb:if]

Since the userdata syntax works for the simple output, how would I use this syntax in an IF STATEMENT ?!?

Please Log in to join the conversation.

12 years 6 months ago #181089 by nant

Please Log in to join the conversation.

12 years 6 months ago - 12 years 6 months ago #182282 by pepperstreet
Replied by pepperstreet on topic Re: Substitution bug & help

pepperstreet wrote: Hello,
I am testing with your temporarily pre-patched plugin.foundation.php file from the forge.
Not sure if this behaviour should be fixed by this this file... I still have some strange substitution behavior with simple-select fields. (Or i am still too dumb for this stuff :whistle: )

IS NOT WORKING:
[cb:userfield field="cb_selecttyp" /]

WORKS:
[cb:userdata field="cb_selecttyp" /]

WORKS:
[cb_selecttyp]


IS NOT WORKING:
[cb:if cb_selecttyp="MyTestValue"]Show me this sample text.[/cb:if]

Since the userdata syntax works for the simple output, how would I use this syntax in an IF STATEMENT ?!?


Just tested with Joomla 1.5.24, CB 1.7.1 in a DELIMITER field.
one issue.


IS WORKING: :-)
[cb:if cb_selecttyp="MyTestValue"]Show me this sample text.[/cb:if]

IS NOT WORKING:
[cb:userfield field="cb_selecttyp" /]

Please Log in to join the conversation.

12 years 6 months ago #182307 by nant
Replied by nant on topic Re: Substitution bug & help
Where exactly are you using this substitution?

Please Log in to join the conversation.

12 years 6 months ago - 12 years 6 months ago #182318 by pepperstreet
Replied by pepperstreet on topic Re: Substitution bug & help
Sorry, was about to type that information... just forgot it ;-)

Testing in a Delimiter field !

Please Log in to join the conversation.

12 years 6 months ago #182435 by nant

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.244 seconds

Facebook Twitter LinkedIn