Example Module 1: a plugin to show "Hello World"

This example shows how to make a simple "Hello World" plugin.

It demonstrates how to write the showSlot() method to output text onto a page.

The description.yaml file

The CMS reads this file to get some descriptive information about your module.

Two important properties here are the display_name of the module, and the uses_instances property which tells the CMS that this module is pluggable and can make plugins.

The showSlot() method

You should use this method to output html onto the page. In this simple example, this plugin prints "Hello World!" onto the page.