31 декабря 2019, 18:55 I used Google translate to replaced most of its lexicons. I tried using it but it didn't fit what I wanted. It also uses a Russian map I believe and that isn't necessary for me either. This is why I want to write my own handler. Вопросы / How to write your own deliveryHandler for Minishop2 3 0
04 июня 2019, 21:33 Is there any docs that shows all of the possible operators for the where clause? Вопросы / Using a migx tv to filter with msproducts 4 0
04 июня 2019, 21:31 It is stored in JSON format. Here is an example from the database [{"MIGX_id":"1","store_countries":"bb","dealstartdate":"2019-05-01 00:00:00","dealenddate":"2019-05-31 23:45:00","published":"1"}] Вопросы / Using a migx tv to filter with msproducts 4 0
03 июня 2019, 22:38 I'm sorry but I'm not getting the Ajax pagination to work. Can you explain to me where I'm going wrong? [[!mFilter2? &parents=`[[*id]]` &paginator=`pdoPageWrapper@pagepagination` &element=`msProducts` &class=`msProduct` &sortold=`ms|price:desc` &sort=`resource|menuindex:asc` &limit=`3` &tplOuter=`nd.tpl.mFilter2.outer` &tpl=`nd.tpl.msProducts.row` &tplFirst=`nd.Firsttpl.msProducts.row` &tpl_n3=`nd.Thirdtpl.msProducts.row` &tplLast=`nd.Lasttpl.msProducts.row` &includeThumbs=`246x246` ]]Snippet <?php $snippet = $modx->getOption('snippet', $scriptProperties, 'pdoPage'); $output = $modx->runSnippet($snippet, $scriptProperties); $total = $modx->getPlaceholder('page.total'); $pages = $modx->getPlaceholder('pageCount'); $page = $modx->getPlaceholder('page'); $from = (($page - 1) * $limit) + 1; $to = (($page - 1) * $limit) + $limit; if ($to > $total) { $to = $total; } $modx->setPlaceholder('page.from',$from); $modx->setPlaceholder('page.to',$to); return $output; Вопросы / Using pdoPage pagination placeholders 4 0
28 мая 2019, 19:18 Thank you, this works. I'm using the pdoPageWrapper with the mFilter2 snippet. I have created to placeholders with the snippet that you wrote.<?php $snippet = $modx->getOption('snippet', $scriptProperties, 'pdoPage'); $output = $modx->runSnippet($snippet, $scriptProperties); $total = $modx->getPlaceholder('page.total'); $pages = $modx->getPlaceholder('pageCount'); $page = $modx->getPlaceholder('page'); $from = (($page - 1) * $limit) + 1; $to = (($page - 1) * $limit) + $limit; if ($to > $total) { $to = $total; } $modx->setPlaceholder('page.from',$from); $modx->setPlaceholder('page.to',$to); return $output;But now the placeholders doesn't work with the ajax mode. How can I get this to work with mFilter2 Ajax mode? Вопросы / Using pdoPage pagination placeholders 4 0
Gallery3x 3.4.0 - вставка галерей прямо из визуального редактора (CKEditor и TinyMCE RTE) Здравствуйте. Есть консольный скрипт Вот почитайте: docs.ivan345.com/books/gallery3x/page/import-ms2galleryphp
[mSync] Новая версия синхронизации с 1С Всем привет. В какой то момент начали сыпаться ошибки: Error 23000 executing statement: INSERT INTO `modx_msync_products` (`product_id`, `uuid_1c`) VALUES ...
Checkbox для модального окна Они не отключены, они платные, чтобы писали только те, кому действительно очень надо. Когда бесплатно люди начинают думать, что я им должен.
[SendIt 2.6.0] Анализ поведения пользователя для защиты от спама (невидимая капча)... Здравствуйте. Делаю личный кабинет на Sendit и со сбросом пароля возникли проблемы. Можете подсказать, в чем ошибка? Список вопросов в одноименном разделе на modx.pro пока пуст, и,...
Minishop + честный знак (продажа маркированной продукции) В нашем случае мы решили убрать всю логику по маркировке сайта.
MiniShop3 - Не выводятся товары дополнительных категорий @SYAN ваша указанная проблема исправлена еще до версии 1.2.3 @Павлик Мышкин завел: github.com/modx-pro/MiniShop3/issues/480 github.com/modx-pro/MiniShop3/issues/481Исправим в б...
MobileDetect 2.0.0-pl функция "планшеты как стандартные браузеры не работает" в 2.1.0-pl баг исправлен
This is why I want to write my own handler.
Snippet
I'm using the pdoPageWrapper with the mFilter2 snippet. I have created to placeholders with the snippet that you wrote.But now the placeholders doesn't work with the ajax mode. How can I get this to work with mFilter2 Ajax mode?