Chunk in Modx can cut your template into samll pieces to make code reuseable.

[[$chunk_name]]

[MODX] 2. Chunks $

 

For example we can replace the html header with [[$html_header]], it should work as before.

 

[MODX] 2. Chunks $

 

[MODX] 2. Chunks $

相关文章: