Сергей

Сергей

С нами с 01 марта 2013; Место в рейтинге пользователей: #310
Сергей
26 марта 2015, 10:01
0
C pdoPage таже фигня, а вот pdoCrumbs работает как ты пишешь.
Сергей
26 марта 2015, 09:54
0
Проверил сейчас pdoMenu с пустым &scheme=``в link_tag_scheme=full, отдает ссылки как будто value до сих пор -1. Кэш и uri почистил.
Сергей
26 марта 2015, 09:50
0
при любых их значениях так
Сергей
26 марта 2015, 09:44
0
Ну тут да, 404 с 200 ответом. Вчера чистый modx ставил, по умолчанию site.ru/хотьчто/ отдает 404, а site.ru/index.php/хотьчто/ отдает 200.
Сергей
26 марта 2015, 09:19
0
Ну я про это и написал, чтобы вообще не указывать &scheme=``, а брать системную настройку по умолчанию, и если нужно исправил в одном месте и все.
Сергей
26 марта 2015, 09:10
0
Странно вчера проверил, не подхватывало это значение в pdoMenu, pdoCrumbs и pdoPage. Через час еще раз проверю, отпишусь.
Сергей
26 марта 2015, 00:31
0
Еще по умолчанию у всех косяк с /index.php/хотьчто/ открыт, тоже нужно закрывать, извиняюсь если в посте было, читал бегло. 3 часа ночи на дворе :)
Сергей
25 марта 2015, 23:39
0
Мужики то тут за срач устроили? У меня вопрос к Василию: можно ли сделать чтобы по умолчанию у сниппетов pdoTools в &scheme подставлялось значение link_tag_scheme, чтобы явно не указывать у каждого сниппета?
Сергей
13 марта 2015, 15:10
+1
добавил в копилку, с з/п будет еще :)
Сергей
01 февраля 2015, 21:06
0
Было такое :). Разбираться времени не было (вроде из-за какого-то приложения). Логи чистые были.
На скорую вылечил зафиксировав в стилях высоту #modx-navbar в 55px, т.к. по умолчанию там #modx-navbar {height: 100%}.
Сергей
25 декабря 2014, 10:26
0
Да-да, разобрался. Только со стороны увидел, когда сюда скопировал. Взгляд замылился за 2 дня без сна практически. Еще раз спасибо!
Сергей
25 декабря 2014, 10:17
+1
Все заработался. Всем извинения. Использовал getTickets :)
Сергей
25 декабря 2014, 10:14
0
[[!getTickets? &tpl=`tpl.Tickets.comment.one.auth` &limit=`3` &includeContent=`1` &parents=`0` &showLog=`1`]]
0.0001659: Query parameters are prepared.
0.0000451: xPDO query object created
0.0002501: leftJoined TicketsSection as Section
0.0002141: leftJoined modUser as User
0.0002120: leftJoined modUserProfile as Profile
0.0000031: Grouped by Ticket.id
0.0001118: Added selection of TicketsSection: SQL_CALC_FOUND_ROWS `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.0000210: Added selection of modUser: `username`
0.0000350: 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.0000520: Added selection of Ticket: `id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `link_attributes`, `published`, `pub_date`, `unpub_date`, `parent`, `isfolder`, `introtext`, `content`, `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.0000250: Processed additional conditions
0.0003350: Added where condition: class_key=Ticket, Ticket.published=1, Ticket.deleted=0
0.0000570: Sorted by Ticket.createdon, DESC
0.0000079: Limited to 3, offset 0
0.0005081: SQL prepared "SELECT SQL_CALC_FOUND_ROWS `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`.`content`, `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` 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` WHERE  ( `Ticket`.`class_key` = 'Ticket' AND `Ticket`.`published` = 1 AND `Ticket`.`deleted` = 0 )  GROUP BY Ticket.id ORDER BY Ticket.createdon DESC LIMIT 3 "
0.0010991: SQL executed
0.0000980: Total rows: 0
0.0000200: Rows fetched
0.0000129: Returning raw data
0.0000060: Returning processed chunks
0.0046620: Total time
10 747 904: Memory usage
В базе есть 3 комментария.
Сергей
25 декабря 2014, 09:51
0
Добрый день, Василий! Или я разобраться не могу, или вопрос неверно задаю. Нужно вывести последние три комментария (не тикета), getComments возвращает мне 0 строк. Rowboat возвращает то что нужно, но он не выводит [[+properties.key]]. Нужен по идее сниппет по аналогии с TicketLatest, только с выводом последних комментариев, а не прокомментированных сниппетов.
Сергей
24 декабря 2014, 04:09
0
Доброго времени суток, Василий! Как этим способом вывести [[+properties.key]]? Может допилишь возможность выводить именно последние комментарии без тикетов и пагинацию комментариев когда нельзя отвечать на них? Покроет сразу остальные 50% случаев, где можно использовать компонент из коробки :)
Сергей
09 декабря 2014, 10:44
0
Все сделал как в посте, все работает без глюков. Но особой скорости не заметил, пока не поставил AjaxManager. До этого вообще его не использовал.