-
- 1,078 Posts
Ok.
I just tried &sortby instead of &sortbyTV, but still the items are not in any logical order.
-
- 1,078 Posts
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.)
-
- 1,078 Posts
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.)
-
- 1,078 Posts
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.
-
- 1,078 Posts
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.
-
- 1,078 Posts
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.
-
- 24,544 Posts
I'm glad it worked for you.