Plugin

Developer
Supported

EE 1
EE 2
CE String

Back to this add-on's main page
View Other Add-ons From Causing Effect

     

You must be logged in to post.

Number format and EE tags

Support (Resolved)

David Botha
David Botha

Hi, I’m trying to use the number_format and it works fine in the following example:
{exp:ce_str:ing number_format}10000.57{/exp:ce_str:ing}

But, if I replace the number with EE tags as follows
{exp:ce_str:ing number_format}{mynumber}{/exp:ce_str:ing},
Then nothing is displayed.

The {mynumber} tag on its own outside of “{exp:ce_str:ing number_format}  {/exp:ce_str:ing}” displays fine.

Am I being stupid?

Thanks for any help.
David

Aaron Waldon (Causing Effect)
# 1
Developer
Aaron Waldon (Causing Effect)

Hi David!

Sounds like a parse order issue to me. If the variable is parsed before CE String it should work (like if the variable is a snippet or from a module tag that is wrapping the below code. If it is coming from a plugin, you may need to add parse=“inward” to the tag so that the variable is parsed before CE String attempts to work with it.

Does that make sense? Please let me know what you find out. :)

David Botha
# 2
David Botha

Hi Aaron,

Thanks for your response. I think you are correct.
I worked around it by by changing the column format in the exp_matrix_data table

Regards
David

Aaron Waldon (Causing Effect)
# 3
Developer
Aaron Waldon (Causing Effect)

Glad you got it sorted out David. :) Please let me know if you have any other questions.