Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Declaration of the editable region: integer filter works fine.
Code: Select all
<cms:editable name='place_number' type='text' validator='integer' />


However when I output this code:
Code: Select all
<cms:reverse_related_pages masterpage='subscriptions.php' orderby='place_number' order='asc'>
<cms:show place_number />,
</cms:reverse_related_pages>


I get the result: 10,12,20,8,
I guess this is because the sorting happens on the first character and then on the second rather than sorting as an integer? How can this be fixed?
Isn't it a correct behaviour?
Your variable name='place_number' is of type='text'.

As to your question - how to do it, I thought about cms:set variable, but have no idea how to make it exlicitly a number format.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Please try setting the 'search_type' parameter of the editable region to 'integer' -
http://docs.couchcms.com/tags-reference ... earch_type

Hope it helps
3 posts Page 1 of 1