Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Yesterday at 01:29 PM
goldmorphin Posted March 3, 2019 Share Posted March 3, 2019 Hello! After update to 4.4.0 my custom product type in no longer avaliable. Although the file is still here /applications/nexus/sources/Package And file is still extend Package namespace IPS\nexus\Package; /* To prevent PHP errors (extending class does not exist) revealing path */ if (!defined('\IPS\SUITE_UNIQUE_KEY')) { header((isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0') . ' 403 Forbidden'); exit; } /** * Product Package */ class _Selfitem extends \IPS\nexus\Package { How to make it available again? Link to comment Share on other sites More sharing options...
Daniel F Posted March 3, 2019 Share Posted March 3, 2019 IPS 4.4.0 implemented finally a proper way to add own Types without uploading files manually into IPS\nexus\sources\Package. Take a look at Package::packageTypes() but I think that there was a bug in 4.4.0 so you'll probably have to wait for 4.4.1 This was also mentioned in https://invisioncommunity.com/forums/topic/450224-44-developer-notes/ Quote Most of the not extensible classes like share services, file storage engines, package types, payment gateways, license key generation methods, server types, converters, and widget types or classes which were required to be placed in an specific directory are extensible now... Link to comment Share on other sites More sharing options...
goldmorphin Posted March 3, 2019 Author Share Posted March 3, 2019 Could you give a small example of how to do it now? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.