It is easily possible to add your own shortcuts, which could be used within every template field.

Create a file <customname>.inc.php in the folder modules/Workflow2/extends/shortfunctions/

This files don’t must follow any structure, but we would recommend, to bundle your functions within a class to prevent duplicate function names.

We recommend the following structure:

[prism field=field1 language=php]

The only requirement is, you call the

WorkflowShortfunctions::register

function, with shortfunction as first parameter and the php callback as second parameter. An optional third parameter as boolean could be set to false, to prevent parsing of parameters, so you get $fieldname instead of the value of the field called “fieldname”

As example you could take a look on core.inc.php file, within this extension directory.