Финансовая поддержка VPS, бесплатные дополнения и docs Донаты оплачивают сервер и двигают бесплатные дополнения MODX и документацию. Поддержать

Всего 126 145 комментариев

Василий Наумкин
Василий Наумкин
Василий Наумкин
Василий Наумкин
Нужно сконвертировать категории и товары, для этого есть консольный скрипт.
Потом перенести картинки в галерею, для этого тоже есть скрипт.

При работе с обоими скриптами внимательно смотрим в код и читаем комментарии, чтобы все аккуратно перенести.

Потом нужно настроить заново вывод каталога более быстрым и мощным сниппетом msProducts, ну и галерею — msGallery.

Примерно так. Именно этими скриптами я конвертировал mamaboutique.ru
Андрей Андреев
Андрей Андреев
Столкнулся с проблемой что не парсит ссылки т.е выводить таким образом — moisite.com/[~57~], решил проблему добавлением функции $modx->rewriteUrls т.е вышло вместо
$result = $modx->parseDocumentSource($result);
это
$result = $modx->rewriteUrls($modx->parseDocumentSource($result));
Андрей Андреев
Андрей Андреев
Alexander V
Alexander V
Сам работаю с MODX недавно. Поначалу с ума сходил от косяков с переносом, пути могут быть в самых невероятных местах и в базе и в файлах. Сначала через setup делал перенос, в итоге пришёл к Vapor. Очень полезная вещь для бекапов.
Андрей
Андрей
убрал parents, результат остался почему-то прежний. т.е:
0.0010180: Added where condition: published=1, hidemenu=0, deleted=0, parent:IN(72)
0.0000939: Grouped by modDocument.id
0.0001490: Added selection of modDocument: SQL_CALC_FOUND_ROWS `modDocument`.`id`, `modDocument`.`type`, `modDocument`.`contentType`, `modDocument`.`pagetitle`, `modDocument`.`longtitle`, `modDocument`.`description`, `modDocument`.`alias`, `modDocument`.`link_attributes`, `modDocument`.`published`, `modDocument`.`pub_date`, `modDocument`.`unpub_date`, `modDocument`.`parent`, `modDocument`.`isfolder`, `modDocument`.`introtext`, `modDocument`.`richtext`, `modDocument`.`template`, `modDocument`.`menuindex`, `modDocument`.`searchable`, `modDocument`.`cacheable`, `modDocument`.`createdby`, `modDocument`.`createdon`, `modDocument`.`editedby`, `modDocument`.`editedon`, `modDocument`.`deleted`, `modDocument`.`deletedon`, `modDocument`.`deletedby`, `modDocument`.`publishedon`, `modDocument`.`publishedby`, `modDocument`.`menutitle`, `modDocument`.`donthit`, `modDocument`.`privateweb`, `modDocument`.`privatemgr`, `modDocument`.`content_dispo`, `modDocument`.`hidemenu`, `modDocument`.`class_key`, `modDocument`.`context_key`, `modDocument`.`content_type`, `modDocument`.`uri`, `modDocument`.`uri_override`, `modDocument`.`hide_children_in_tree`, `modDocument`.`show_in_tree`, `modDocument`.`properties`
0.0000260: Sorted by id, ASC. Limited to 5, offset 0
0.0007980: SQL prepared "SELECT SQL_CALC_FOUND_ROWS `modDocument`.`id`, `modDocument`.`type`, `modDocument`.`contentType`, `modDocument`.`pagetitle`, `modDocument`.`longtitle`, `modDocument`.`description`, `modDocument`.`alias`, `modDocument`.`link_attributes`, `modDocument`.`published`, `modDocument`.`pub_date`, `modDocument`.`unpub_date`, `modDocument`.`parent`, `modDocument`.`isfolder`, `modDocument`.`introtext`, `modDocument`.`richtext`, `modDocument`.`template`, `modDocument`.`menuindex`, `modDocument`.`searchable`, `modDocument`.`cacheable`, `modDocument`.`createdby`, `modDocument`.`createdon`, `modDocument`.`editedby`, `modDocument`.`editedon`, `modDocument`.`deleted`, `modDocument`.`deletedon`, `modDocument`.`deletedby`, `modDocument`.`publishedon`, `modDocument`.`publishedby`, `modDocument`.`menutitle`, `modDocument`.`donthit`, `modDocument`.`privateweb`, `modDocument`.`privatemgr`, `modDocument`.`content_dispo`, `modDocument`.`hidemenu`, `modDocument`.`class_key`, `modDocument`.`context_key`, `modDocument`.`content_type`, `modDocument`.`uri`, `modDocument`.`uri_override`, `modDocument`.`hide_children_in_tree`, `modDocument`.`show_in_tree`, `modDocument`.`properties` FROM `modx_site_content` AS `modDocument` WHERE  ( `modDocument`.`published` = 1 AND `modDocument`.`hidemenu` = 0 AND `modDocument`.`deleted` = 0 AND `modDocument`.`parent` IN (72) )  GROUP BY modDocument.id ORDER BY id ASC LIMIT 5 "