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 | |
/** | |
* Refresh all static elements entirely | |
* MODX Revolution | |
* @author [email protected] | |
*/ | |
define('MODX_API_MODE', true); | |
/** | |
* CHANGE this reference to the main index.php! | |
*/ |
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 | |
/** | |
* getGalleryCoverByTV snippet | |
* Get gallery's cover from Template Variable | |
* | |
* @author goldsky <[email protected]> | |
* @license GPLv3 | |
*/ | |
$toPlaceholder = $modx->getOption('toPlaceholder', $scriptProperties); |
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 | |
/** | |
* getTVText snippet | |
* | |
* Dynamically Render Template Variable on front-end to get not only the value, | |
* but also its input's "text" | |
* | |
* @author goldsky <[email protected]> | |
* |
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 | |
switch ($modx->event->name) { | |
// "refresh cache" part | |
case 'OnContextSave': | |
case 'OnContextRemove': | |
case 'OnSiteRefresh': | |
$contexts = array(); | |
$cacheKey = 'xrouting_contextmap'; |
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
# MODX supports Friendly URLs via this .htaccess file. You must serve web | |
# pages via Apache with mod_rewrite to use this functionality, and you must | |
# change the file name from ht.access to .htaccess. | |
# | |
# Make sure RewriteBase points to the directory where you installed MODX. | |
# E.g., "/modx" if your installation is in a "modx" subdirectory. | |
# | |
# You may choose to make your URLs non-case-sensitive by adding a NC directive | |
# to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC] |
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 | |
/** | |
* includeFile snippet is to include any file in MODX's page, either in resource, template, or chunk | |
* | |
* @author goldsky <[email protected]> | |
* @copyright Copyright (c) 2015, goldsky | |
* @example [[!includeFile? &file=`[[++core_path]]statics/chunks/mychunk.chunk.tpl`]] | |
* [[!includeFile? &file=`[[++core_path]]statics/snippets/mysnippet.snippet.php`]] | |
* |
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
<tr> | |
<td>Positions</td> | |
<td>:</td> | |
<td><ul>[[+dynfield.items]]</ul></td> | |
</tr> |
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
<li>[[+dynfield.position]]</li> |
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
<tr> | |
<td>Telephones</td> | |
<td>:</td> | |
<td><ul>[[+dynfield.items]]</ul></td> | |
</tr> |
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
<li>[[+dynfield.telephone]]</li> |
NewerOlder