MODX Cloud

The Most Productive MODX Learning Playground Ever

Claim Free Lab Account

Label: chunk

All content with label chunk.
Related Labels: snippet, jot, template-variable, module, bindings, add-on

Page: (at)CHUNK (MODx 0.9.6)
64;CHUNK @CHUNK Bindings Syntax @CHUNK chunkname Binds the variable to a document. Where chunkname is the name of the chunk. The returned value is a string containing the content of the chunk. This binding is very similar to the @DOCUMENT binding with the exception that it will bind the TV to a chunk (or htmlsnippet ...
Other labels: bindings, template-variable
Page: (at)CHUNK (MODx Evolution 1.0)
64;CHUNK @CHUNK Bindings Syntax @CHUNK chunkname Binds the variable to a document. Where chunkname is the name of the chunk. The returned value is a string containing the content of the chunk. This binding is very similar to the @DOCUMENT binding with the exception that it will bind the TV to a chunk (or htmlsnippet ...
Other labels: bindings, template-variable
Page: modChunk (MODx Revolution 2.x)
modChunk Class This is the Chunk base class for MODx Revolution. Methods See Also
Page: modChunk.getContent (MODx Revolution 2.x)
modChunk::getContent Get the source content of this chunk. Syntax API Doc: http://api.modx.com/revolution/2.2/dbcoremodelmodxmodchunk.class.html#%5Cmo dChunk::getContent() void getContent ( $options = array()) Example $chunk = $modx>getObject('modChunk',array('name' => 'MyChunk')); if ($chunk) See Also
Page: modChunk.setContent (MODx Revolution 2.x)
modChunk::setContent Sets the content of this Chunk. Syntax API Doc: http://api.modx.com/revolution/2.2/dbcoremodelmodxmodchunk.class.html#%5Cmo dChunk::setContent() void setContent ( $content, $options = array()) Example $chunk>setContent('<h2>Hello!</h2>'); See Also