CodeIgniter Forums
Parser feature - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Parser feature (/showthread.php?tid=81549)



Parser feature - ignitedcms - 03-16-2022

Not sure if this is there already, but I was wondering if the parser could have a feature to display a finite number of array items, rather than implementing that logic from the controller, same with sorting and orderby, of course this assumes data is from a sql query.

For example

PHP Code:
{blogItems orderby="date" sort="desc" limit="1" }

{/
blogItems