Skip to content

Instantly share code, notes, and snippets.


luk exside

View GitHub Profile
View defaultTemplateByParentTv.plugin.php
* =========================
* defaultTemplateByParentTv
* =========================
* Plugin for modX Revolution
* Set default template for children of a ressource
* Author:
View introRTE
// 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");
View .cache.idx.php
* OpenExpedio ("xPDO") is an ultra-light, PHP 5.2+ compatible ORB (Object-
* Relational Bridge) library based around PDO (
* This plugin is part of xPDO.
* xPDO is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
View checkbox.css
Usage (the label is required)
<input id="uid" type="checkbox" ... /><label for="uid">Label</label>
Produces styled checkboxes in IE9+, current Firefox and Chrome
Demo here:
@author Bryan Elliott <>
View box-shadow.html
<!DOCTYPE html>
<title>Box Shadow</title>
.box {
height: 150px;
width: 300px;
margin: 20px;
View modx.apimode.php
define('MODX_API_MODE', true);
define('MODX_CONFIG_KEY', 'config');
$modx = new modX();
View modx_loadlex.php
if (!$this->modx->lexicon) {
$this->modx->getService('lexicon', 'modLexicon');
exside / modx.log.php
Last active Dec 14, 2015 — forked from ideesimple/gist:752778
MODx log
View modx.log.php
$modx->log(modX::LOG_LEVEL_ERROR, "{ } log");
View gist:5072393
/* ActivateNotify Plugin
by Breezer
8/15/2010 7:12 pm est
if ($modx->event->name == 'OnUserActivate') {
// array of emails to send the notification
View MODX.alwaysEnableResourceSave.plugin.php
if ($modx->event->name == 'OnManagerPageInit') {
$script = <<<SCRIPT
<script type="text/javascript">
Ext.ComponentMgr.onAvailable('modx-panel-resource', function(){
Ext.getCmp('modx-panel-resource').on('ready', function(){
window.setTimeout(function(){Ext.getCmp('modx-panel-resource').markDirty()}, 250);
You can’t perform that action at this time.