インクルード
contentの中身は、インクルードにして、静的htmlで書きたい!というときに使います。
スニペット設定
[!インクルード!]
error_reporting(0);
if ($name) {
include($modx->config['base_path'] . 'inc/'. $name .'.html');
もしくは
include($modx->config['base_path'] . 'inc/'. $modx->documentObject['id'] .'.html');
}
error_reporting(E_ALL);
上記の例ではincフォルダにあるhtmlファイルに接続します。
使用例
本文(content)内にこのスニペットを書きます。