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
[[+dynfield.items]] | |
<script> | |
function addRow(button) { | |
var newRow = '[[$step2DynamicFields.item:chunkToJsProperty]]' + " \n"; | |
$(newRow).insertBefore($(button)); | |
} | |
function removeRow(button) { | |
$(button).parent().parent().remove(); | |
} | |
</script> |
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 | |
/** | |
* fiDynamicFields snippet | |
* | |
* the snippet to manipulate this dynamic form, to parse the HTML code and | |
* to hold the submitted values if the page goes back to the same page. | |
* | |
* @link http://www.virtudraft.com/blog/dynamic-fields-in-multiple-pages-for-formit.html | |
* @author goldsky <[email protected]> |
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
<p>Hello Admin,</p> | |
<p>Someone has sent the application form.</p> | |
<table style="border: none;"> | |
<tr> | |
<td colspan="3">Personal Details</td> | |
</tr> | |
<tr> | |
<td>Name</td> | |
<td>:</td> |
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
<li>[[+dynfield.telephone]]</li> |
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
<tr> | |
<td>Telephones</td> | |
<td>:</td> | |
<td><ul>[[+dynfield.items]]</ul></td> | |
</tr> |
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
<li>[[+dynfield.position]]</li> |
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
<tr> | |
<td>Positions</td> | |
<td>:</td> | |
<td><ul>[[+dynfield.items]]</ul></td> | |
</tr> |
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 | |
/** | |
* 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 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
# 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 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 | |
switch ($modx->event->name) { | |
// "refresh cache" part | |
case 'OnContextSave': | |
case 'OnContextRemove': | |
case 'OnSiteRefresh': | |
$contexts = array(); | |
$cacheKey = 'xrouting_contextmap'; |