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

Plugin/template embed parse order?

Development and Programming

upshot's avatar
upshot
85 posts
14 years ago
upshot's avatar upshot

I’m in the middle of writing my first plugin and I’ve hit a snag. My code:

{exp:cwk_galleries:gallery perpage="9"}
    {exp:channel:entries channel="videos" sort="desc" status="open|comingsoon"}
        <div>TEST1</div>
        {embed="embed/video-gallery-entry" entry_id="{entry_id}"}
        <div>TEST2</div>
    {/exp:channel:entries}
{/exp:cwk_galleries:gallery}

My cwk_galleries plugin is supposed to parse the HTML via $this->EE->TMPL->tagdata and modify it in a few ways before returning the data. However when I return the data, it seems the template embed is getting stripped out completely. All that is returned is:

<div>TEST1</div>
<div>TEST2</div>
<div>TEST1</div>
<div>TEST2</div>
<div>TEST1</div>
<div>TEST2</div>
// etc....

Is there any way to achieve what I’m trying to do here? Or am I stuck hardcoding all of the HTML instead of using a template embed?

       
upshot's avatar
upshot
85 posts
14 years ago
upshot's avatar upshot

EDIT: Solved it. I needed to add dynamic=”no” to the embed tag.

       

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.