Is it possible to debug the ContentBlocks parsing?

ContentBlocks does its own parsing of a resource when the page is saved. That processes field and layout templates. The caveats of that detailed here, but to summarise: all content that is guaranteed to stay the same until the next save (i.e. the content entered on the page) is processed on save, while things that may change otherwise (e.g. chunks or snippet calls). 

The result of that parsing is saved to the resource content, which MODX will parse further when the page is rendered.

If you're having issues parsing a certain complex page, or perhaps you just want to know what ContentBlocks makes of a page before it is completed by the MODX parser, there's a simple trick. Simply use the Quick Update Resource in MODX (right click the page in the resource tree, and choose Quick Update Resource) and look at the content there. 

Still need help? Send us an email Send us an email