We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Build/get SQL query generated by weblog:entries

Development and Programming

Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

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!

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

Alternatively is there a way to retrieve the weblog tag from the template and parse it and retrieve the results from within my module?

Any help would be greatly appreciated!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.