It took me a while to figure out how to do the object registry with config.yaml so I put it here, in case somebody else needs it:
MyObject.pm is placed under plugins/MyPlugin/lib/MyPlugin/MyObject.pm
It took me a while to figure out how to do the object registry with config.yaml so I put it here, in case somebody else needs it:MyObject.pm is placed under plugins/MyPlugin/lib/MyPlugin/MyObject.pm
id: MyPlugin
key: my-plugin
name: My Plugin
description: My Plugin Example
version: 1.0.2
schema_version: 0.7
author_name: My Nameobject_types:
MyObject: MyPlugin::MyObject
callbacks:
my_plugin_saveName: $MyPlugin::MyPlugin::Plugin::saveName
tags:
function:
MyPluginButton: $MyPlugin::MyPlugin::Plugin::my_plugin_button
settings:
MyPluginSw:
default: 1
scope: blog
blog_config_template: MyPlugin_config.tmpl
The official docs really need to be cleaned up. There are too many references to the old, Perl file-based way of defining plugins.