All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Thousands separator for Low List number values?

wbj 8 Feb 2017 12:17 question, complete

Hi. I'm using Low List with Low Search and would like list items values to have thousand separators eg 10,000,000|20,000,000 etc. Is this possible? Thanks

--
{exp:low_list:each items="0|10000000;10000000|20000000" sep=";"}

{val}

{/exp:low_list:each}

Replies

  1. Low 8 Feb 2017 12:23

    You could just use key/value pairs instead.

    {exp:low_list:each items="0|10000000:Zero to 10,000,000;10000000|20000000:10,000,000 to even more" sep=";"} 
    {key} - {val}
    {/exp:low_list:each}

  2. wbj 8 Feb 2017 12:27

    Yes, that works. Thanks so much for the super quick response!

  3. wbj 8 Feb 2017 12:33

    Is there a way to hide the value?

  4. Low 8 Feb 2017 12:34

    Don't add it to the template?

  5. wbj 8 Feb 2017 12:38

    Yes, silly me. Thanks!