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

Fieldtype requires Module during installation

Development and Programming

John Morton's avatar
John Morton
84 posts
14 years ago
John Morton's avatar John Morton

If you’ve got a module that requires an extension, you use ‘public $required_by = array(‘Module’);’.

I’m trying to get something similar with a fieldtype I’m working on. Basically, you must have the module installed to make the field type work properly, but I can’t get the same sort of installation that ‘public $required_by = array(‘Module’);’ provides.

Is there a way to make the installation of a fieldtype require a module?

Thanks.

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
14 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

No, not currently. You can add some logic into your fieldtype install method to make sure the module is installed though.

       

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.