Get count of filtered records

juuser

Well-Known Member
I need to display the number of filtered records in my custom list template's header.

In default.php I can get the value from "$this->nav" like "Page 1 of 2 Total: 20, where 20 is the number of filtered records.

I could parse the string to get the value, but was wondering if anyone have better idea to get just the value?

Even better if it could be fetched in list_xx.js

Thanks in advance!
 
Last edited:
Thank you @troester! That's it. I have some server memory limit issues so I couldn't var_dump the whole $this.

Just realized that with ajaxified list it will obviously not update after filters are applied. Wonder if there is the filtered records value somewhere in "Fabrik" javascript object, so it could be fetched and updated in list_x.js. Didn't find any digging it through :(
 
I can't var_dump $this, too. But the old dump (jdump) is working fine.
No idea about JS (this is usually your part;))
 
I can't var_dump $this, too. But the old dump (jdump) is working fine.
No idea about JS (this is usually your part;))
Thanks for the hint! Haven't used jdump with F4 yet.

Regarding js, it may be my part to a very modest extent, but only as long as it doesn't require digging in thousands of rows of Fabrik code :p
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top