ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Looking for documentation to explain this code snippet

May 04, 2012 6:53pm

Subscribe [3]
  • #1 / May 04, 2012 6:53pm

    Adpearance

    13 posts

    I’ve inherited an ExpressionEngine/CartThrob project.

    I came across the following code snippet and have been unable to find documentation that explains the pool and filters arguments.

    {exp:query pool="{include_categories}" filters="{exclude_categories}" limit="9"}

    Can you someone point me in the right direction?

    What I specifically want to do is filter the query by status=“open” but simply inserting that into the expression didn’t change the resultset.

  • #2 / May 05, 2012 8:07am

    Boyink!

    5011 posts

    That’s a line of custom code that, unless specifically documented by the developer, won’t specifically be found in the EE docs.

    The query tag needs a SQL statement, which is what I assume the {include_categories} is.  That could either be a Snippet or Global Variable, so that’s where I’d check first.

    Looking at the docs for the query module:
    http://ellislab.com/expressionengine/user-guide/modules/query/index.html

    Neither the pool or filters parameters are native - so I’m not sure what’s going on there or if Carthrob is adding those somehow.

    Any way to contact the original dev?

  • #3 / May 07, 2012 11:05am

    Adpearance

    13 posts

    Thanks Boyink!

    Sure enough I went to the Query Module and found some custom code.

    Thanks!

  • #4 / May 07, 2012 11:37am

    Shane Eckert

    7174 posts

    Hi Adpearance,

    I am really glad to see that Mike was able to help you out! Thanks for the assist Mike.

    If you need anything else, please just let us know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases