Skip to Content Skip to Menu

[SOLVED] Substitution bug & help

12 years 11 months ago - 12 years 10 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 ?!?
Last edit: 12 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 11 months ago #181089 by nant

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 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" /]
Last edit: 12 years 11 months ago by pepperstreet.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 11 months ago #182307 by nant
Replied by nant on topic Re: Substitution bug & help
Where exactly are you using this substitution?

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 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 !
Last edit: 12 years 11 months ago by pepperstreet.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 11 months ago #182435 by nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum