Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
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 | |
interface ISimplxHTTPProxy{ | |
public function setBaseURL($url); | |
public function setServiceURI($uri); | |
public function login($usn,$psw); | |
public function logout(); | |
public function get($res,$data); | |
public function post($res,$data); | |
public function patch($res,$data); | |
public function put($res,$data); |
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
var SimplxStudio = {}; | |
SimplxStudio.modx = {}; | |
/* Creating JSON representation for modAccess */ | |
SimplxStudio.modx.modAccess={ | |
"class": "modAccess", | |
"extends":"xPDOSimpleObject", | |
"fields": [ | |
"id","alias","target","principal_class","principal","authority","policy" |
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
SIMPLX Controller V0.7 | |
UPDATE 111109 | |
NEW FEATURES: | |
- Added a whole bunch of modResource fields to the Request object. This means that you can route on stuff like: | |
pagetitle | |
template |
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
Examples of above script: | |
# into a standard directory, where config.xml resides in the current working directory | |
sh install.sh /home/modx/public_html/ | |
# with a custom config.xml file | |
sh install.sh /home/modx/public_html/ /opt/local/modx/config.xml |
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 | |
/* RemoteCommands plugin -- register with OnHandleRequest OR OnWebPageComplete event */ | |
/* define the IP of the master instance which does not need to execute remote commands */ | |
$master_instance = $modx->getOption('master_instance', $scriptProperties, '127.0.0.1'); | |
/* get the instance IP */ | |
$instance = $_SERVER['SERVER_ADDR']; | |
/* the number of seconds the remote command is valid for */ |
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
--------------- core/components/migx/elements/tv/input/migx.php --------------- | |
index 11a9c2d..53370a5 100644 | |
@@ -133,6 +133,7 @@ $lang = $this->xpdo->lexicon->fetch(); | |
$lang['mig_add'] = !empty($properties['btntext'])?$properties['btntext']:$lang['mig_add']; | |
$modx->smarty->assign('i18n', $lang); | |
$this->xpdo->smarty->assign('properties', $properties); | |
+$this->xpdo->smarty->assign('resource', is_object($this->xpdo->resource) ? $this->xpdo->resource->toArray() : array()); | |
$this->xpdo->smarty->assign('pathconfigs', $this->xpdo->toJSON($pathconfigs)); | |
$this->xpdo->smarty->assign('columns', $this->xpdo->toJSON($cols)); | |
$this->xpdo->smarty->assign('fields', $this->xpdo->toJSON($fields)); |
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
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
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 | |
/** | |
* ========================= | |
* defaultTemplateByParentTv | |
* ========================= | |
* | |
* Plugin for modX Revolution | |
* Set default template for children of a ressource | |
* | |
* Author: |
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
#!/bin/sh | |
# Request and read in db details from user | |
echo "Please enter your database hostname | |
(e.g. localhost) and press [ENTER]:" | |
read db_host | |
echo "Please enter your MODX database name and press [ENTER]:" | |
read db_name | |
echo "Please enter your MODX database user and press [ENTER]:" | |
read db_user |