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

Getting the contents of variable pairs

Development and Programming

circa1977's avatar
circa1977
118 posts
about 16 years ago
circa1977's avatar circa1977

Hi everyone,

I’ve spent hours this evening reading up on plugin/module development and working with single variables and variable pairs, running down code examples, other threads and core modules. I’m at a complete loss for a clear example of cleanly getting the inner contents of a variable pair. I’m working in the latest EE2 build (2.02) and am under the impression that I’ll still need to do a preg_match(_all), but none of the code examples I’m seeing are working.

I’m basically trying to get at multiple tag pairs and their contents. So:

{exp:my_module}
{tag}Some stuff here{/tag}
{tag}Some other stuff in this one{/tag}
{/exp:my_module}

tagdata returns the contents of exp:my_module. Within that, what’s the quickest way to get the contents of the inner tags–those particular inner tags–into an array?

Thanks, Mark

       
circa1977's avatar
circa1977
118 posts
about 16 years ago
circa1977's avatar circa1977

Got it working by referencing FieldFrame 1.4. Big thanks to Brandon Kelly.

       

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.