Chunks

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}}

test [!test!]

Accessing Chunks via the MODx API

Chunks can also be manipulated by the MODx API:

Usage

$modx->getChunk('chunkName');



Altri Extra correlati