Chunks

Skip to end of metadata
Go to start of metadata

Chunks are useful for reusing blocks of code or HTML to your sites. Chunks cannot contain any logic directly, although they can contain calls to Snippets that do contain logic.

Usage

{{chunkName}}

 

Accessing Chunks via the MODx API 

Chunks can also be manipulated by the MODx API:

Usage

$modx->getChunk('chunkName');
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.