Dashboard > MODx 0.9.6 > ... > Developers Guide > Chunks

View Attachments (0) Info

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

Accessing Chunks via the MODx API 

Chunks can also be manipulated by the MODx API:

Usage

$modx->getChunk('chunkName');

Browse Space
- Pages
- Labels
- Attachments
- Mail
- Bookmarks
- News
- Activity
- Advanced

Explore Confluence
- Popular Labels
- Notation Guide

Your Account
Log In

Other Features

View a printable version of the current page.

Add Content


Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki.
Bug/feature request - Contact administrators