Looking to create a plugin and I need capture the total_results of a channel.
This would be how the plugin would be used in a template:
{exp:plugin_name channel_short_name="news"}
//stuff that goes in here
{/exp:plugin_name}I want to know if there is any functions in the API that allow me to fetch the total_results of a channel, I probably would need to pass the status to it as well.
If there is a page that has a list of data I can fetch that includes that, it would be helpful.
Thanks.
Hiya,
I personally don’t know if there is any API for what you are after here although the way I’d do it is just utilise a simple database query to get at what you need here.
Is it just literally just the total_results for a single Channel you are after here as I could swear there was one of these on devot-ee.com somewhere. Sorry but couldn’t find the link whilst posting this.
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.