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 within a Plugin

Development and Programming

chrcollins's avatar
chrcollins
77 posts
15 years ago
chrcollins's avatar chrcollins

I wrote a plugin I want to wrap around the imgsizer plugin. I debugged my plugin and it works ok on its own but it doesn’t work when I put the imasizer plugin inside the tag…

{exp:dirdump dir='./nest/proj/images/facility'}
  {exp:imgsizer:size src="{file}" width="200"}
      {sized}
  {/exp:imgsizer:size}
{/exp:dirdump}

I suspect that when the $this->EE->TMPL->fetch_param() function in the plugin is confused by the imgsizer tag and does not see the {file} param hiding within. Is there a post or wiki that discusses this issue and how to deal with it? Do I have to parse the imgsizer tag on my ownI am going to look at some of the other modules that can do this and try and reverse engineer it.

E.E. version 2.1.1 Build: 20101020

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

It seems that exp:dirdump tag should have

parse="inward"

parameter.

       
chrcollins's avatar
chrcollins
77 posts
15 years ago
chrcollins's avatar chrcollins

Thanks for the reply ….

I tried adding it to my dirdump tag and it did not help.

       
box-head's avatar
box-head
177 posts
15 years ago
box-head's avatar box-head

Hi chrcollins,

I’m needing to do somehting similar (plugin within a plguin). Did you manage to get any further with this?

Thanks.

       

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.