MODx Revolution Snippets
MODx Revolution Sublime Text 2 snippets
Labels snippets
Details
Installs
- Total 1K
- Win 892
- Mac 385
- Linux 215
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
MODx Sublime Text 2 Bundle
This bundle aims to provide most of MODx functionality and featues when creating Custom Manager Pages.
Here is a list of triggers currently setup and in their own context.
ExtJS - source.js
trigger: extExtend
Ext.extend(MyClass.window.Name, ClassToExtend, {});
trigger: extReg
Ext.reg('myclass-window-name', MyClass.window.Name);
trigger: extText
{
xtype: 'textfield'
,fieldLabel: 'label'
,name: 'name'
,anchor: '100%'
}
trigger: extFun
Namespace.window/grid/panel/tree/page/combo/config.ClassName = function (config) {
config = config || {};
Ext.applyIf(config, {
title: 'title'
,url: connectorUrl
,fileUpload: true
,baseParams: {
action: 'create'
}
,fields: []
});
Namespace.window/grid/panel/tree/page/combo/config.ClassName.superclass.constructor.call(this, config);
};
Ext.extend(Namespace.window/grid/panel/tree/page/combo/config.ClassName, Ext/MODX.Class});
Ext.reg('namespace-window/grid/panel/tree/page/combo/config-classname', Namespace.window/grid/panel/tree/page/combo/config.ClassName);
xPDO - text.xml
trigger: aggregate
<aggregate alias="Alias" class="ClassName" local="local" foreign="id" cardinality="one|many" owner="foreign|local" />
trigger: composite
<composite alias="Alias" class="ClassName" local="local" foreign="id" cardinality="one|many" owner="foreign|local" />
trigger: field
<field key="name" dbtype="varchar" precision="160" attributes="unsigned" phptype="string" null="false" default="" />
trigger: field.int
<field key="name" dbtype="int" precision="11" attributes="unsigned" phptype="integer" null="false" default="" />
trigger: field.enum
<field key="name" dbtype="enum" precision="'db','cookie','redis'" phptype="string" null="false" default="" />
trigger: field.float
<field key="name" dbtype="float" precision="8,2" phptype="float" null="false" default="" />
trigger: model
<model package="ClassName" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM">
</model>
trigger: object
<object class="ClassName" table="table_name" extends="xPDOSimpleObject">
<field key="name" dbtype="varchar" precision="160" attributes="unsigned" phptype="string" null="false" default="" />
</object>