File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55### Fixed
66
77- Prolet and other ExpressionEngine Control Panel URLs were using old admin route
8+ - Channel Entries tag support for random ordering
89
910## [ 2.0.0] - 2025-01-14
1011
Original file line number Diff line number Diff line change @@ -367,7 +367,10 @@ public function run()
367367 foreach ($ fields ->terms as $ index => $ field ) {
368368 $ direction = isset ($ directions [$ index ]) ? $ directions [$ index ] : end ($ directions );
369369 $ field = $ field ->value ;
370- if ($ this ->fieldtypeManager ->hasField ($ field )) {
370+
371+ if ($ field === 'random ' ) {
372+ $ this ->query ->inRandomOrder ();
373+ } elseif ($ this ->fieldtypeManager ->hasField ($ field )) {
371374 $ this ->query ->orderByCustomField ($ field , $ direction );
372375 } else {
373376 $ this ->query ->orderBy ($ this ->query ->qualifyColumn ($ field ), $ direction );
You can’t perform that action at this time.
0 commit comments