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 tags into add-on

Development and Programming

Dan Storm's avatar
Dan Storm
70 posts
13 years ago
Dan Storm's avatar Dan Storm

Hi!

I’m having some trouble passing some data from a tag into my plugin/module add-on.

Basically, I’m trying to do something like this:

{exp:imgaddon:size src="{cat_image}" size="400"}

Echoing the paramater through

$this->EE->TMPL->fetch_param('src');

returns the string “{cat_image}” instead of what the tag contains when outputted in the template.

How can I get that value?

       
Ralph's avatar
Ralph
78 posts
13 years ago
Ralph's avatar Ralph

You could add parse=”inward” to the tag that surrounds your plugin. That will parse the outer tag before the inner one then. If that doesn’t work can you post the code that includes the outer tag?

       
Dan Storm's avatar
Dan Storm
70 posts
13 years ago
Dan Storm's avatar Dan Storm
You could add parse=”inward” to the tag that surrounds your plugin. That will parse the outer tag before the inner one then.

That worked like a charm - I thought I already tried it, but I must have done something wrong then.

Thank you.

       

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.