| Параметр | Описание | Значение по умолчанию |
|---|---|---|
| $categoryId | id категории | Вывод из всех |
| $tpl | шаблон для вывода | tpl.msCategoryOptions.row |
| $active | Выводить только активные | Да(1) |
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 | |
| $pdo = $modx->getService('pdoTools'); | |
| $fieldName = $modx->getOption('fieldName', $scriptProperties, 'vendor'); | |
| $fieldClass = $modx->getOption('fieldClass', $scriptProperties, ''); | |
| $firstOption = $modx->getOption('firstOption', $scriptProperties, ''); | |
| $parent = $modx->getOption('parent', $scriptProperties, $modx->resource->get('id')); | |
| $depth = $modx->getOption('depth', $scriptProperties, 10); | |
| $limit = $modx->getOption('limit', $scriptProperties, 100); | |
| $tplOuter = $modx->getOption('tplOuter', $scriptProperties, '@INLINE <ul class="brands">[[+rows]]</ul>'); |
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
| {foreach $cats as $cat} | |
| <div class="section-option"> | |
| <h5 class="mb-3">{$cat.name}</h5> | |
| <ul class="list-group list-group-flush mb-3"> | |
| {foreach $cat.items as $option} | |
| <li class="list-group-item d-flex justify-content-between border-0 px-0 py-2"> | |
| <span> | |
| {$option.caption} | |
| </span> | |
| <span> |
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
| Ошибка: | |
| .\venv\Scripts\activate : Невозможно загрузить файл C:\path\venv\Scripts\activate.ps1, так как выполнение сценариев отключено в этой системе. | |
| Для получения дополнительных сведений см. about_Execution_Policies по адресу http://go.microsoft.com/fwlink/?LinkID=135170. | |
| строка:1 знак:1 | |
| .\venv\Scripts\activate | |
| ~~~~~~~~~~~~~~~~~~~~~~~ | |
| CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException | |
| FullyQualifiedErrorId : UnauthorizedAccess | |
| Решение проблемы: |
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 | |
| /**************************************/ | |
| /** HtmlFromNabor snippet for MODX Revo | |
| * | |
| * @version 0.2 | |
| * @author Borisov Evgeniy aka Agel Nash (agel-nash@xaker.ru) | |
| * @date 18.12.2012 | |
| * | |
| * @category snippet | |
| * @internal @modx_category System |
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 | |
| $time = microtime(true); | |
| $json = $modx->getOption('json', $scriptProperties, ''); | |
| $json = !empty($json) ? $modx->fromJSON($json) : array(); | |
| $log = $modx->getOption('showLog', $scriptProperties, ''); | |
| $tpl = $modx->getOption('tpl', $scriptProperties, ''); | |
| $where = $modx->getOption('where', $scriptProperties, ''); | |
| $where = !empty($where) ? $modx->fromJSON($where) : array(); |
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
| SQL Server 2017 | |
| ---------------- | |
| Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83 | |
| Developer - 22222-00000-00000-00000-00000 | |
| Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B | |
| Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89 | |
| Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC | |
| https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/ |
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 | |
| $pdo = $modx->getService('pdoTools'); | |
| $fieldName = $modx->getOption('fieldName', $scriptProperties, 'vendor'); | |
| $fieldClass = $modx->getOption('fieldClass', $scriptProperties, ''); | |
| $firstOption = $modx->getOption('firstOption', $scriptProperties, ''); | |
| $parent = $modx->getOption('parent', $scriptProperties, 0); | |
| $depth = $modx->getOption('depth', $scriptProperties, 10); | |
| $limit = $modx->getOption('limit', $scriptProperties, 100); | |
| $tplOuter = $modx->getOption('tplOuter', $scriptProperties, '@INLINE <select name="[[+name]]" class="[[+class]]">[[+rows]]</select>'); |
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) { | |
| case 'OnDocFormSave': | |
| if ($resource->get('template') === 5) { // event | |
| $start = $resource->getTVValue('event.start'); | |
| $finish = $resource->getTVValue('event.finish'); | |
| if ($start && $finish) { // o both empty or both filled, that means OK | |
| return; | |
| } |
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 | |
| if (!defined('MODX_BASE_PATH')) die('HACK???'); | |
| /** | |
| * RedirectFriendly | |
| * | |
| * 301 Редирект с вложенных и наоборот ссылок (полезен при переключении настройки <b>Использовать вложенные URL</b>) | |
| * | |
| * @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html | |
| * @author MrSwed <webmaster@sdcollection.com> |
NewerOlder