MODx Revolution Extra which allow manipulate data with specified tags in templates before main parser execution by using Conditional output modifiers syntax. Branch Master: use OnParseDocument event. Branch onParseTemplate: use its own event.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_build
_packages
core/components/preconditions
.gitignore
README.md
README.ru.md

README.md

PreConditions

MODx Revolution Extra which allow manipulate data with specified tags only in templates before main parser execution (on first OnParseDocument) by using Conditional output modifiers syntax.

Purpose:

Allow guarantly exclude parts of template from main parser processing. Example:

[[^isfolder:is=`1`:then=`[[-`]]
[[$Chunk]]
[[^isfolder:is=`1`:then=`]]`]]

In this example chunk Chunk will be processed only if current document is not a folder.
Otherwise the code will be wrapped in comments tags and totally excluded from processing.