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 | |
/* | |
Repair id2path if a resource is displayed in context of another resource. | |
Uses either the current +id placeholder or a custom id added as output filter option. | |
Example for getResources: | |
[[+ImageTv:fixPath]] | |
Example for fastfield: |
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 | |
/** | |
* MODX Revolution OnElementNotFound plugin | |
* Add static elements inside categories for defined packages OnElementNotFound | |
* | |
* Author: Jeroen Kenters / www.kenters.com | |
* Version: 1.0.0-beta | |
* License: GPL | |
* | |
* Warning: |
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 | |
/* | |
mgThumb by pepebe | |
--------------------------------------------- | |
saves the first image in a galley inside a tv | |
trigger OnDocFormSave | |
Initial idea: https://gist.github.com/christianseel/557a1e0f2a1f502ce1c5 | |
Changelog: |
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 | |
/* | |
ppb_seoProCss | |
Alternative layout for sterc seoPro | |
AUTHOR: | |
info@pepebe.de | |
USAGE: |
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 | |
/* | |
DESCRIPTION: | |
------------ | |
Find out if there are resources where the ID of the current resource | |
can be found inside TV with comma separeated values. | |
Usefull for teaching getResources a new trick. |
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 | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
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 | |
/** | |
* a2z snippet | |
* @author pepebe info@pepebe.de | |
* @version 0.0.1 | |
* 06/17/2014 | |
* | |
* Refurbished version of siteAtoZ snippet by bobray. | |
* | |
* Usage: |
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
/* | |
Inherit resource groups only if resource is new | |
Source: http://forums.modx.com/thread/79531/inheriting-resource-groups | |
Author: paulmerchant (http://forums.modx.com/u/paulmerchant) | |
Compatible 2.2.x | |
Not tested with 2.3.x (might even not be necessary anymore in 2.3.x ...) | |
*/ |
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 | |
if ($modx->getOption('http_host') == 'YOUR_DOMAIN_HERE') { | |
$op = '<script type="text/javascript"> | |
Ext.onReady(function() { | |
document.getElementById("modx-login-username").value = "USER"; | |
document.getElementById("modx-login-password").value = "PASS"; | |
document.getElementById("modx-login-btn").click(); | |
}); | |
</script>'; |
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 | |
/* | |
VimeoAlbum will pull in an album from Vimeo, complete with links, thumbnails, descriptions, etc. | |
Source: http://forums.modx.com/thread/13967/solved-snippets-for-integrating-vimeo#dis-post-76815 | |
Author: http://forums.modx.com/u/danzg | |
CAVEAT: This will only return the first 20 videos in a given album, | |
and will not return any videos whose privacy is hidden! | |
[[VimeoAlbum?albumID=`VimeoAlbumID`]] |