Git Product home page Git Product logo

modx-sublimetext-2's Introduction

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.