Developer
Supported
CE String
Back to this add-on's main page
View Other Add-ons From Causing Effect
Number format and EE tags
Support (Resolved)
|
David Botha
|
| Posted: 06 March 2012 10:03 AM |
|
|
|
|
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)
|
| Posted: 06 March 2012 09:52 PM |
# 1
|
|
|
Developer
|
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
|
| Posted: 09 March 2012 07:44 AM |
# 2
|
|
|
|
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)
|
| Posted: 09 March 2012 05:58 PM |
# 3
|
|
|
Developer
|
Glad you got it sorted out David. :) Please let me know if you have any other questions.
|
|
|
|