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

Inheritance / Extending the Weblog class

Development and Programming

Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

Is is possible to extend the Weblog class? I have a plugin that at it’s core should function as a weblog:entries tag but with it’s own additional functionality.

Is this possible currently with the way EE is engineered? Ultimately it would be nice to simply call _parse_weblog_entry_vars($values, $tagdata) and have the modified tagdata returned for further parsing.

Any advice, suggestions, ideas would be greatly appreciated.

       
Robert Wallis's avatar
Robert Wallis
36 posts
16 years ago
Robert Wallis's avatar Robert Wallis

Inside your module code, you could instantiate the Weblog class, do your thing, run the Weblog->entries() function, do something else, and return your own value.

😊

       

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.