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.

Parse order issues

September 01, 2011 8:08am

Subscribe [2]
  • #1 / Sep 01, 2011 8:08am

    johnwbaxter

    651 posts

    Hi,

    I have a template like this:

    {embed="embeds/global_header"}
    {embed="banners/home-banners"}
    {exp:cat_search:do_cat_search}
        <div id="main">
            <div id="sub-left">
    
                    {embed="embeds/result-embed" cats={exp:cat_search:do_cat_search}}
    
            </div>
            <div id="sub-right">
            </div>
        </div>
    {embed="embeds/global_footer"}
    {embed="embeds/global_footer_end"}

    Basically, i have created a module that outputs some category id’s in pipe delimited format.

    What i want to do is to feed that to a query module query, and run that query. However, i’m running into that problem where the parse order means that the module output doesn’t get parsed in time for the query module to use it. So, i’m trying an embed and passing the modules output to the embed. But that’s not working either, i’m suffering from the same issue as before.

    I’ve simply forgotten what i need to do to resolve this, i knew it once, but i’ve forgotten :(

    Thanks!

  • #2 / Sep 01, 2011 9:58am

    the3mus1can

    426 posts

    Does you template code actually look like this?

    {embed="embeds/result-embed" cats="{exp:cat_search:do_cat_search}"}

    If not try that.

  • #3 / Sep 01, 2011 10:04am

    johnwbaxter

    651 posts

    Oh, for the love of go…..

    Thanks, i cannot believe it was a lack of speech marks that killed me there. What an idiot.

    Thanks for your reply!!!!!!!

    Woohoo!!!!!!!

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

ExpressionEngine News!

#eecms, #events, #releases