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

Passing data retrieved via plugin to exp:weblog:categories

Development and Programming

Chad Crowell's avatar
Chad Crowell
242 posts
16 years ago
Chad Crowell's avatar Chad Crowell

I am quite sure this is a parse order problem. WHat I need to know is how to get around it. The plugin is returning the correct data that I want, which is list of cat_id’s like 1|2|3|4|5|6

Here is what I have tried:

{exp:weblog:categories weblog="videos" style="linear" show="{exp:fetch_category id="{embed:id}"}"}

        {category_name}

    {/exp:weblog:categories}

and

{exp:lg_replace:haystack needles="catlist"}
    
        {exp:lg_replace:replacement needle="catlist"}
            {exp:fetch_category id="{embed:id}"}
        {/exp:lg_replace:replacement}
        
        {exp:weblog:categories weblog="videos" style="linear" show="{catlist}"}

            {category_name}

        {/exp:weblog:categories}
    
    {/exp:lg_replace:haystack}

and (with the exp:weblog:categories call in the embed)

{exp:lg_replace:haystack needles="catlist"}
    
        {exp:lg_replace:replacement needle="catlist"}
            {exp:fetch_category id="{embed:id}"}
        {/exp:lg_replace:replacement}
        
        {embed="blah/_categories" catlist="{catlist}"}
    
    {/exp:lg_replace:haystack}

In each case the plugin call is working, and in the case of using LG_Replace the needle does contain the correct data.

Help?

       

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.