I’m building a new function into one of our modules that is a tag pair around a weblog:entries tag. The new function retrieves it’s settings from the weblog:entries parameters, however I was wondering if it was possible to build an SQL query that matches what would be created by the weblog:entries tag?
So if I have the following weblog:entries tag in my template:
{exp:weblog:entries weblog="entries" dynamic="off" offset="0" limit="1" orderby="title" sort="asc" disable="categories|member_data|trackbacks"}
How can I get the SQL query that is run for that tag for me to execute and use the results in my function? Is this even possible? Is there a function such as build_query() that I could pass the weblog:entries tag to?
Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.