This file contains 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
Loose collection of links to various topics regarding MIGX by Bruno17 | |
This file contains 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
Just a tiny hack to enable sorting a MIGx by ANY ot it's columns. | |
Add the following lines below /* get default properties */ near the top: | |
$sortBy = $modx->getOption('sortBy', $scriptProperties, ''); | |
$sortOrder = $modx->getOption('sortOrder', $scriptProperties, 'asc'); | |
Just before $idx = 0; (arround line #122) add this bit of code: |
This file contains 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
by http://forums.modx.com/u/BobRay | |
<?php | |
/* InGroup snippet */ | |
$output = ""; | |
if ($modx->user->isMember('groupA')) { | |
$output = $modx->getChunk('chunk1'); | |
} else if ($modx->user->isMember('GroupB')) { | |
$output = $modx->getChunk('chunk2'); | |
} else { |
This file contains 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
<img src="brokenimageling.jpg" onerror="this.style.display='none'"> |
This file contains 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 | |
/* | |
Fork of the original executioner snippet by opengeek | |
Usage: | |
[[!Executioner? | |
&tElementClass=`modSnippet` | |
&tEcho=`comment` | |
&tElement=`getResourceField` | |
&id=`27` |
This file contains 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
http://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-413494 | |
developed by Lucas | |
Idea: Speed up wf by creating a static wayfinder chunk every time a document is saved. (should slow down manager). | |
a) create a chunk. Leave it empty. Name it whatever you want, e.g. testMenu | |
b) create a plugin. Enter this: | |
$myChunk = 'testMenu'; | |
$params['startId'] = '0'; |
This file contains 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 | |
/* Downloaded from: http://www.dangibbs.co.uk/journal/clear-modx-revolution-cache-from-php-script | |
UNTESTED!!! | |
*/ | |
/* | |
* Clear (refresh) MODx Cache from external PHP Script | |
* | |
* MODx Revolution (2.0.7-pl) | |
* Daniel Gibbs |
This file contains 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
Pass a parameter to getImageList | |
Example: | |
[[!getImageList? | |
&docid=`120` | |
&tvname=`contactinfo migx` | |
&tpl=`contactinfo.migx.tpl` | |
&contact=`[[+contact]]` | |
]] |
This file contains 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
this worked 8 months before. I have to check if it is still working... | |
Just a tiny hack to enable sorting a MIGx by ANY one of it's columns. | |
Add the following lines below /* get default properties */ near the top: | |
$sortBy = $modx->getOption('sortBy', $scriptProperties, ''); | |
$sortOrder = $modx->getOption('sortOrder', $scriptProperties, 'asc'); | |
This file contains 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 | |
/* Return document depth | |
* Author: Aaron Ladage - eatsleepmodx.com | |
* Published: http://www.gregorysmart.com/2010/05/27/guest-post-count-levels-in-modx/ | |
* */ | |
$output = ''; | |
$id = $modx->documentIdentifier; | |
$levelcount = count($modx->getParentIds($id)); | |
$output .= $levelcount; | |
return $output; |