Skip to content

Instantly share code, notes, and snippets.

@christianseel
Created April 14, 2016 07:48
Show Gist options
  • Save christianseel/9ffca8aa66fc4b420167873719574832 to your computer and use it in GitHub Desktop.
Save christianseel/9ffca8aa66fc4b420167873719574832 to your computer and use it in GitHub Desktop.
save at core/components/<yournamespace>/controllers/<alias>.class.php and call it via /manager/?a=<alias>&namespace=<yournamespace> (make sure to add the namespace to you namespaces in MODX) – http://modxcookbook.com/customize-manager/cmps/cmp-made-easy.html
<?php
class TestcmpParsedManagerController extends modParsedManagerController
{
public function getPageTitle() {
return 'Test CMP';
}
public function process(array $scriptProperties = [])
{
return '[[$testcmp]]';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment