Jump to content

Nexus. Custom product type


goldmorphin

Recommended Posts

Posted

Hello!

After update to 4.4.0 my custom product type in no longer avaliable.

6450fb09e41f5f2bf3d9090a35e8b842.png

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?

Posted

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... 

    Archived

    This topic is now archived and is closed to further replies.

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...