Константин

Константин

С нами с 30 мая 2017; Место в рейтинге пользователей: #272
Константин
06 июня 2018, 15:34
0
Вы немного не так поняли. Мне нужно выводить изображения вперемешку с текстом. Ну вот как здесь, например, wpnew.ru/raskrutka-bloga/seo_optimizaciya/stranicy-paginacii.html
А галерею я знаю как сделать и без использования ms2gallery)
Константин
20 мая 2018, 19:05
0
Добрый день! Не работает tvSuperSelect с MIGX. Данные заполняются, но при редактировании, все что забил в поле пропадает. Можно как-то поправить?

Кстати, попробовал использовать с MIGX тип TV авто-метка и тоже не работает.
Константин
07 мая 2018, 15:05
0
Хорошо. Когда выбьюсь из сил, напишу Вам в личку.
Константин
07 мая 2018, 14:59
0
Хорошо. Если я не смогу разобраться, будет у Вас возможность помочь? Не бесплатно, конечно же.
Константин
07 мая 2018, 10:53
0
Неа, не помогло. Не знаю, куда еще думать. С моими знаниями в MODX чувствую не скоро решу проблему.
Константин
06 мая 2018, 23:27
0
Максим, нужна Ваша помощь. Пару недель назад, следуя Вашей инструкции по загрузке файлов к тикетам, у меня все получилось сделать без проблем. Т.е. файлы прикреплялись к новому тикету. Единственное, я поменял в Вашем плагине часть:
$q->where(array(
'list'  => 'default', // здесь поменял на default, иначе в админке не видел файлов, прикрепленных к тикету
'parent'  => $resource->get('id'), // здесь у меня нет привязки к конкретному разделу, где добавляется тикет
'class' => 'modResource',
'createdby' => $modx->user->id,
));

В сниппетах ufForm указал
&list=`default`

Сегодня обнаружил, что загруженные файлы прикрепляются к родительской секции, а не к дочерним тикетам. Что только я не делал и хоть ты тресни, ничего не получается. За две недели много чего по сайту было сделано, может что напортачил. Хотя маловероятно, что что-то могло повлиять на работу плагина. Попробовал все делать с нуля по Вашей инструкции и все равно ничего не получается, как будто плагин не отрабатывает как нужно и не перезаписываются пути для вновь созданного ресурса. Может на что-то следует обратить внимание?
Константин
06 мая 2018, 17:57
0
Спасибо! Но не получилось по-вашему. Вот так сработало:
$(document).ready(function () {
    $( "#project-add-img-link" ).click(function() {
        document.getElementById('my-button').click();
    });
});
Константин
06 мая 2018, 16:12
0
Функция той кнопки, которая находится под формой добавления файлов меня устраивает. Мне нужно ее просто перенести в форму Tickets, а форма с изображениями нужно, чтобы оставалась под формой Tickets
Константин
06 мая 2018, 15:23
0
Как добавить кнопку добавления файлов в TicketForm?
Константин
16 апреля 2018, 22:43
0
Вопрос решен. Спасибо Андрею за помощь.
Константин
15 апреля 2018, 22:15
0
Все равно выводится одна новость.
showLog
0.0143850: pdoTools loaded
0.0112228: Returning processed chunks
0.3389301: Total time
8 912 896: Memory usage

Если указать в сниппете пустой &tpl=``, то видно, что выводится ТРИ массива со всеми заголовками, ссылками на изображения, просмотры и т.д.

showLog при пустом &tpl
0.0001550: Query parameters are prepared.
0.0001340: xPDO query object created
0.0004339: Included list of tvs: img
0.0001600: leftJoined TicketsSection as Section
0.0001230: leftJoined modUser as User
0.0001180: leftJoined modUserProfile as Profile
0.0001669: leftJoined TicketTotal as Total
0.0001180: leftJoined modTemplateVarResource as TVimg
0.0000031: Grouped by Ticket.id
0.0001011: Added selection of TicketsSection: `id` AS `section.id`, `type` AS `section.type`, `contentType` AS `section.contentType`, `pagetitle` AS `section.pagetitle`, `longtitle` AS `section.longtitle`, `description` AS `section.description`, `alias` AS `section.alias`, `link_attributes` AS `section.link_attributes`, `published` AS `section.published`, `pub_date` AS `section.pub_date`, `unpub_date` AS `section.unpub_date`, `parent` AS `section.parent`, `isfolder` AS `section.isfolder`, `introtext` AS `section.introtext`, `richtext` AS `section.richtext`, `template` AS `section.template`, `menuindex` AS `section.menuindex`, `searchable` AS `section.searchable`, `cacheable` AS `section.cacheable`, `createdby` AS `section.createdby`, `createdon` AS `section.createdon`, `editedby` AS `section.editedby`, `editedon` AS `section.editedon`, `deleted` AS `section.deleted`, `deletedon` AS `section.deletedon`, `deletedby` AS `section.deletedby`, `publishedon` AS `section.publishedon`, `publishedby` AS `section.publishedby`, `menutitle` AS `section.menutitle`, `donthit` AS `section.donthit`, `privateweb` AS `section.privateweb`, `privatemgr` AS `section.privatemgr`, `content_dispo` AS `section.content_dispo`, `hidemenu` AS `section.hidemenu`, `class_key` AS `section.class_key`, `context_key` AS `section.context_key`, `content_type` AS `section.content_type`, `uri` AS `section.uri`, `uri_override` AS `section.uri_override`, `hide_children_in_tree` AS `section.hide_children_in_tree`, `show_in_tree` AS `section.show_in_tree`, `properties` AS `section.properties`
0.0000129: Added selection of modUser: `username`
0.0000298: Added selection of modUserProfile: `internalKey`, `fullname`, `email`, `phone`, `mobilephone`, `blocked`, `blockeduntil`, `blockedafter`, `logincount`, `lastlogin`, `thislogin`, `failedlogincount`, `sessionid`, `dob`, `gender`, `address`, `country`, `city`, `state`, `zip`, `fax`, `photo`, `comment`, `website`, `extended`
0.0000410: Added selection of Ticket: `id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `link_attributes`, `published`, `pub_date`, `unpub_date`, `parent`, `isfolder`, `introtext`, `richtext`, `template`, `menuindex`, `searchable`, `cacheable`, `createdby`, `createdon`, `editedby`, `editedon`, `deleted`, `deletedon`, `deletedby`, `publishedon`, `publishedby`, `menutitle`, `donthit`, `privateweb`, `privatemgr`, `content_dispo`, `hidemenu`, `class_key`, `context_key`, `content_type`, `uri`, `uri_override`, `hide_children_in_tree`, `show_in_tree`, `properties`
0.0000851: Added selection of TicketTotal: `comments`, `views`, `stars`, `rating`, `rating_plus`, `rating_minus`
0.0000131: Added selection of modTemplateVarResource: IFNULL(`value`, '') AS `img`
0.0000210: Replaced TV conditions
0.0004129: Processed additional conditions
0.0006239: Added where condition: class_key=Ticket, Ticket.parent:IN(15,39,40,41), Ticket.published=1, Ticket.deleted=0
0.0000072: Replaced TV conditions
0.0000641: Sorted by Ticket.createdon, DESC
0.0000019: Limited to 3, offset 0
0.0003800: SQL prepared "SELECT `Section`.`id` AS `section.id`, `Section`.`type` AS `section.type`, `Section`.`contentType` AS `section.contentType`, `Section`.`pagetitle` AS `section.pagetitle`, `Section`.`longtitle` AS `section.longtitle`, `Section`.`description` AS `section.description`, `Section`.`alias` AS `section.alias`, `Section`.`link_attributes` AS `section.link_attributes`, `Section`.`published` AS `section.published`, `Section`.`pub_date` AS `section.pub_date`, `Section`.`unpub_date` AS `section.unpub_date`, `Section`.`parent` AS `section.parent`, `Section`.`isfolder` AS `section.isfolder`, `Section`.`introtext` AS `section.introtext`, `Section`.`richtext` AS `section.richtext`, `Section`.`template` AS `section.template`, `Section`.`menuindex` AS `section.menuindex`, `Section`.`searchable` AS `section.searchable`, `Section`.`cacheable` AS `section.cacheable`, `Section`.`createdby` AS `section.createdby`, `Section`.`createdon` AS `section.createdon`, `Section`.`editedby` AS `section.editedby`, `Section`.`editedon` AS `section.editedon`, `Section`.`deleted` AS `section.deleted`, `Section`.`deletedon` AS `section.deletedon`, `Section`.`deletedby` AS `section.deletedby`, `Section`.`publishedon` AS `section.publishedon`, `Section`.`publishedby` AS `section.publishedby`, `Section`.`menutitle` AS `section.menutitle`, `Section`.`donthit` AS `section.donthit`, `Section`.`privateweb` AS `section.privateweb`, `Section`.`privatemgr` AS `section.privatemgr`, `Section`.`content_dispo` AS `section.content_dispo`, `Section`.`hidemenu` AS `section.hidemenu`, `Section`.`class_key` AS `section.class_key`, `Section`.`context_key` AS `section.context_key`, `Section`.`content_type` AS `section.content_type`, `Section`.`uri` AS `section.uri`, `Section`.`uri_override` AS `section.uri_override`, `Section`.`hide_children_in_tree` AS `section.hide_children_in_tree`, `Section`.`show_in_tree` AS `section.show_in_tree`, `Section`.`properties` AS `section.properties`, `User`.`username`, `Profile`.`internalKey`, `Profile`.`fullname`, `Profile`.`email`, `Profile`.`phone`, `Profile`.`mobilephone`, `Profile`.`blocked`, `Profile`.`blockeduntil`, `Profile`.`blockedafter`, `Profile`.`logincount`, `Profile`.`lastlogin`, `Profile`.`thislogin`, `Profile`.`failedlogincount`, `Profile`.`sessionid`, `Profile`.`dob`, `Profile`.`gender`, `Profile`.`address`, `Profile`.`country`, `Profile`.`city`, `Profile`.`state`, `Profile`.`zip`, `Profile`.`fax`, `Profile`.`photo`, `Profile`.`comment`, `Profile`.`website`, `Profile`.`extended`, `Ticket`.`id`, `Ticket`.`type`, `Ticket`.`contentType`, `Ticket`.`pagetitle`, `Ticket`.`longtitle`, `Ticket`.`description`, `Ticket`.`alias`, `Ticket`.`link_attributes`, `Ticket`.`published`, `Ticket`.`pub_date`, `Ticket`.`unpub_date`, `Ticket`.`parent`, `Ticket`.`isfolder`, `Ticket`.`introtext`, `Ticket`.`richtext`, `Ticket`.`template`, `Ticket`.`menuindex`, `Ticket`.`searchable`, `Ticket`.`cacheable`, `Ticket`.`createdby`, `Ticket`.`createdon`, `Ticket`.`editedby`, `Ticket`.`editedon`, `Ticket`.`deleted`, `Ticket`.`deletedon`, `Ticket`.`deletedby`, `Ticket`.`publishedon`, `Ticket`.`publishedby`, `Ticket`.`menutitle`, `Ticket`.`donthit`, `Ticket`.`privateweb`, `Ticket`.`privatemgr`, `Ticket`.`content_dispo`, `Ticket`.`hidemenu`, `Ticket`.`class_key`, `Ticket`.`context_key`, `Ticket`.`content_type`, `Ticket`.`uri`, `Ticket`.`uri_override`, `Ticket`.`hide_children_in_tree`, `Ticket`.`show_in_tree`, `Ticket`.`properties`, `Total`.`comments`, `Total`.`views`, `Total`.`stars`, `Total`.`rating`, `Total`.`rating_plus`, `Total`.`rating_minus`, IFNULL(`TVimg`.`value`, '') AS `img` FROM `modx_site_content` AS `Ticket` LEFT JOIN `modx_site_content` `Section` ON `Section`.`id` = `Ticket`.`parent` LEFT JOIN `modx_users` `User` ON `User`.`id` = `Ticket`.`createdby` LEFT JOIN `modx_user_attributes` `Profile` ON `Profile`.`internalKey` = `User`.`id` LEFT JOIN `modx_tickets_totals` `Total` ON `Ticket`.`id` =  `Total`.`id` LEFT JOIN `modx_site_tmplvar_contentvalues` `TVimg` ON `TVimg`.`contentid` = `Ticket`.`id` AND `TVimg`.`tmplvarid` = 1 WHERE  ( `Ticket`.`class_key` = 'Ticket' AND `Ticket`.`parent` IN (15,39,40,41) AND `Ticket`.`published` = 1 AND `Ticket`.`deleted` = 0 )  GROUP BY Ticket.id ORDER BY Ticket.createdon DESC LIMIT 3 "
0.0017681: SQL executed
0.0000880: Rows fetched
0.0002060: Returning raw data
0.0013721: Returning processed chunks
0.2712450: Total time
8 650 752: Memory usage
Константин
11 апреля 2018, 11:47
0
Сбросьте ссылочку, пожалуйста, тоже нужно.
Константин
08 апреля 2018, 22:46
1
0
Здравствуйте. Не могу понять, как получить варианты ссылок как здесь:



У меня сейчас так:

Константин
02 апреля 2018, 17:36
0
Очень дельное предложение! Очень удобно в текстовом редакторе вордпресс добавлять изображения в текст. В Modx этого очень не хватает.
Константин
21 февраля 2018, 20:20
0
Спасибо. Учту. Получается, что самым оптимальным и правильным вариантом будет именно прописывание единицы измерения к каждому товару? Мне казалось, что есть способ, указать в категории товаров нужную единицу измерения и распространить это значение во все вложенные товары.
Константин
16 февраля 2018, 20:07
0
Спасибо! Все заработало как нужно.
Константин
14 февраля 2018, 21:03
0
Слушайте, у меня такие же проблемы с опциями. Особенно не удобно при добавлении новой опции выстраивать новый порядок. У меня категорий более 50 и в каждой нужно ручками перемещать новую опцию на свое место.
Константин
11 февраля 2018, 22:38
0
Спасибо! Поставил пробелы и заработало!
Константин
05 февраля 2018, 16:15
0
Спасибо. Купил. Есть пожелание. Не могли бы Вы в в одном из будущих обновлений предусмотреть возможность просмотра в админке данных с форм «Обратный звонок», «Задать вопрос». Очень нужно это.
Константин
05 февраля 2018, 16:02
0
Я правильно понимаю, что при заказе в 1 клик, создается заказ в админке minishop2?