This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- outputting in rows --> | |
<div class="row"> | |
[[pdoResources? | |
&parents=`[[*id]]` | |
&depth=`2` | |
&limit=`99` | |
&includeTVList=`myTv,anotherTv` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## searches for 'old' | |
## and replaces it with 'new' | |
## in field 'content' | |
## restricted to context 'web' (which is optionally) | |
## always make a backup | |
## there is NO undo ! | |
## optionally | |
## check if there is a match: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add RTE for introtext if richtext option is enabled for the resource | |
// check "OnDocFormRender" event | |
$modx->regClientStartupHTMLBlock('<script>Ext.onReady(function() { | |
if(MODx.loadRTE) MODx.loadRTE("modx-resource-introtext"); | |
});</script>'); |