Jump to main content Jump to doc navigation

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.

See Also

  1. Dashboard Widget Type - File
  2. Dashboard Widget Type - HTML
  3. Dashboard Widget Type - Inline PHP
  4. Dashboard Widget Type - Snippet

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more