ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

MODx Revolution Snippets

by silentworks ALL Missing

MODx Revolution Sublime Text 2 snippets

Labels snippets

Details

  • 2012.07.03.11.02.28
  • github.​com
  • github.​com
  • 13 years ago
  • 2 years ago
  • 13 years ago

Installs

  • Total 1K
  • Win 892
  • Mac 385
  • Linux 215
Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
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>