HTML
Last updated Apr 17th, 2019 | Page history | Improve this page | Report an issue
The HTML Dashboard Widget Type displays straight HTML - nothing else - in a widget. Useful for simple messages and other data.
Usage¶
Simply place your HTML in the content panel, and it will load the HTML in the widget.
This widget type also supports cached placeholders and element calls (uncached calls will not work). So, for example, you can use:
Hello, [[+modx.user.username]]!
To output the username of the logged-in user. You can also call Snippets, like so:
[[MyDashboardSnippet]]
Note that in snippets there is no "active resource", so snippets referencing $modx->resource
will have issues.