Registering Types

Adding content types is done through the factory. Make sure you register the type to the correct array or you will be missing objects when selecting on basic types.

// Text Types
$factory->register_type($reactor->types->objects->text, "text/topic");;
$factory->register_type($reactor->types->objects->text, "text/bookmark");
$factory->register_type($reactor->types->objects->text, "text/wiki");
$factory->register_type($reactor->types->objects->text, "text/gallery");

// Image Types
$factory->register_type($reactor->types->objects->image, "image/png");
$factory->register_type($reactor->types->objects->image, "image/webp");

// Video Types
$factory->register_type($reactor->types->objects->video, "video/ogg");
$factory->register_type($reactor->types->objects->video, "video/x-m4v");
$factory->register_type($reactor->types->objects->video, "image/svg+xml");

Description of the main PHP Engine loop.
Protected pages are page names that cannot be used for normal pages.
Learn how to create new plugins from scratch.
Learn how to build new themes from scratch.
Register new scripts and stylesheets.
Register new types to the core.
Register a new theme to the core.
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
Do you want to accept tracking cookies?