Number formatting in Sightly | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Another option is to build your Sightly component to use Java. THen use Java to perform numeric fomatting on the value

https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

See this community article:

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

That article will show you how to build a Sightly component with data-sly and Java.

5 replies

smacdonald2008
Level 10
October 16, 2015

Information about Sightly and numeric data can be located here:

http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html

francisco_ribei
Level 6
October 16, 2015

Hi @smacdonald2008,

Thanks for you reply, but I didn't find anything about number formatting, could you point me that?

Thanks

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Another option is to build your Sightly component to use Java. THen use Java to perform numeric fomatting on the value

https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

See this community article:

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

That article will show you how to build a Sightly component with data-sly and Java.

francisco_ribei
Level 6
October 16, 2015

Hi,

Thanks for your reply.

That's was my first idea, I'd just like to know if in Sightly itself there was already anything ready.

Thanks

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

In Sightly there is, for now, no formatting is available. You would need to implement this via Java/Javascript.