ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,697
- Points
- 823
Reputation:
Hi
How can I display a number variable as a 'simple' number in a template?
Example code:
HTML:
i.e. instead of displaying the $cost variable as
Is there a built in function I can use, or only use JavaScript?
I found this post:
https://xenforo.com/community/threads/xf-template-functions.177272/#post-1410553
But can't figure out how to use the functions (and if they are...
Read more
Continue reading...
How can I display a number variable as a 'simple' number in a template?
Example code:
HTML:
{{ $cost ? $cost : phrase('free') : }}
i.e. instead of displaying the $cost variable as
5.00 USD
I'd like to simply display[COLOR=hsl(var(--xf-editorFocusColor))] [/COLOR]5
.Is there a built in function I can use, or only use JavaScript?
I found this post:
https://xenforo.com/community/threads/xf-template-functions.177272/#post-1410553
But can't figure out how to use the functions (and if they are...
Read more
Continue reading...