Ok.
I just tried &sortby instead of &sortbyTV, but still the items are not in any logical order.
Now, after changing the input back to Text, the TV is once again visible in the manager.
The sort should be able to work with Text though. Doesn't php have a method of how it sorts numbers and alpha.
The entries are numbers and commas (3,250,000 2,750,000 and so on.)
Now, after changing the input back to Text, the TV is once again visible in the manager.
The sort should be able to work with Text though. Doesn't php have a method of how it sorts numbers and alpha.
The entries are numbers and commas (3,250,000 2,750,000 and so on.)
Oh I see. The TV doesn't disappear, but "Numbers" does not allow for a comma. Not good. Need the commas. I've switched back to Text as the Input type.
Oh I see. The TV doesn't disappear, but "Numbers" does not allow for a comma. Not good. Need the commas. I've switched back to Text as the Input type.
OK. This works better:
[[!pdoResources?
&parents=`[[*id]]`
&tpl=`propsFeatured-docs-thumb-tpl`
&limit=`100`
&includeTVs=`propPrice,propNeighborhood,propTitle,propImage_main`
&processTVs=`1`
&TVprefix=``
&depth=`1`
&showHidden=`1`
&sortbyTV=`propPrice`
&sortdirTV=`DESC`
]]
Added TV to both
&sortby
&sortdir
To:
&sortbyTV=`propPrice`
&sortdirTV=`DESC`
Now DESC works, listing items highest price to lowest price.
However, the pesky errors it back
(ERROR @ .../core/components/pdotools/model/pdotools/pdofetch.class.php : 408) PHP warning: array_key_exists() expects parameter 2 to be array, null given
I'm exhausted. pdoTools needs more specific documentation maybe. I might just switch back to getResources.
I'm glad it worked for you.