Hi all, I have across this peculiar issue:
Let`s say I have a bunch of cloned pages of some products, which have their respective prices or courses, which have some capacity (and hence a number of occupied and free slots) ... and would like to offer sorting these pages by those criteria.
Sorting by product name, lecturer name, etc. is easy, but what about the number? Provided it is actually a text variable, simple
sorts it alphabetically, so the order would be 1000 - 2500000 - 3000 - 400, etc. I tried decimal dots in the admin, tried
and have also seen a brief explanation at viewtopic.php?f=4&t=10064, but still no do. How do I make Couch consider the string a number, so that I can use it in the <pages...> tag, please? I understand a <capture> may not help here...
Thanks in advance!
Let`s say I have a bunch of cloned pages of some products, which have their respective prices or courses, which have some capacity (and hence a number of occupied and free slots) ... and would like to offer sorting these pages by those criteria.
Sorting by product name, lecturer name, etc. is easy, but what about the number? Provided it is actually a text variable, simple
- Code: Select all
<cms:pages masterpage='masterpage.php' orderby='my_price' order='asc' >
sorts it alphabetically, so the order would be 1000 - 2500000 - 3000 - 400, etc. I tried decimal dots in the admin, tried
- Code: Select all
<cms:number_format "<cms:show kurz_cena />" decimal_precision='0' />
and have also seen a brief explanation at viewtopic.php?f=4&t=10064, but still no do. How do I make Couch consider the string a number, so that I can use it in the <pages...> tag, please? I understand a <capture> may not help here...
Thanks in advance!