Extensions

Extensions are a simple way to extend the cms-server to your needs.

Register Shortcode

import { $hooks } from 'system/hooks.mjs';


$hooks.registerAction("system/content/shortcodes", (context) => {
	context.arguments().get("shortCodes").put(
			"hello",
			(params) => `Hello ${params.get("name")}`
	)
	return null;
})

[[hello name="CondationCMS"]]

Site globals