Помогите разобратся с includeThumbs

Всем привет. Не могу понять что творится и как выводить превьюшки других размеров. Прошу вашей помощи.


Картинки все залилты, и превьюшки сгенерированы.

Вот так выводятся товары:
[[!msProducts:default=`Нет предложений`?
                &limit=`8`
		&includeThumbs=`300x300`
                &parents=`19` 
                &where=`{"Data.popular":1}`
                &tpl=`store.Product.popular-new`
              ]]
Выводим:
...
<img src="[[+300x300:default=`[[++assets_url]]components/minishop2/img/web/ms2_small.png`]]" alt="[[+pagetitle]]" />
...
Картинки нет.

Копаю дальше, и вижу
Array
(
    [id] => 23
...
    [image] => 
    [thumb] => /assets/images/products/23/110x110/img.jpg
...
    [300x300] => 
...
)
Что не так я сделал?
AV_Jok
12 ноября 2016, 23:58
modx.pro
3 262
0

Комментарии: 8

Дмитрий Середюк
13 ноября 2016, 10:54
0
Необходимо в источнике файлов MS2 Images изменить формат превью



А так же указать в системной настройке minishop2

    AV_Jok
    13 ноября 2016, 14:10
    0
    Спасибо за совет, но

    Необходимо в источнике файлов MS2 Images изменить формат превью
    я уже писал
    Картинки все залиты, и превьюшки сгенерированы.
    Для верности приведу здесь
    [{"w":110,"h":110,"q":90,"zc":"1","bg":"ffffff"},
    {"w":300,"h":300,"q":90,"zc":"1","bg":"ffffff"}]
    Мне надо вывести в одном месте превью другого размера, по документации за это отвечает &includeThumbs.
    Вот мне и не понятно что я не так делаю.
      Дмитрий Суворов
      13 ноября 2016, 15:29
      0
      посмотрите, точно ли создана картинка, лежит ли она на сервере? Она исходя из примера должна лежать в папке assets/images/products/23/300x300
      Загляните в журнал ошибок, что там пишет?
        AV_Jok
        13 ноября 2016, 16:32
        0
        Давно уже перепроверил.



          Дмитрий Суворов
          13 ноября 2016, 16:38
          0
          ну все верно у вас. Если хотите — могу глянуть детальнее на сайте, доступы можете в skype скинуть: dmitry_suvoroff
            AV_Jok
            13 ноября 2016, 17:09
            0
            Отправил
    SYAN
    17 ноября 2021, 12:46
    0
    Аналогичная дилемма, не могу «достучаться» до small и medium

    {'!pdoPage' | snippet : [
    	'element' => 'msProducts',
    	'parents' => '840',
    	'limit' => '5',
    	'offset' => '0',
    	'depth' => '10',
    	'tvPrefix' => '',
    	'select' => 'pagetitle, id, small, medium'
    	'includeThumbs' => 'small, medium',
    	'tpl' => '@INLINE id={$id} sm={$small} med={$medium} th={$thumb}
    ',
    	'showLog' => '1'
    ]}
    id=1270 sm= med= th=/assets/images/gallery/1270/small/scale-1200.jpg
    id=1271 sm= med= th=/assets/images/gallery/1271/small/maxresdefault-(1).jpg
    id=1272 sm= med= th=/assets/images/gallery/1272/small/fffff1.jpg
    id=1276 sm= med= th=/assets/images/gallery/1276/small/0-02-05-5d02719d25c310d2fab855d57d513acfe4d9210fc4cacd93b04859c68b064021-ba4aa39157e0f880.jpg
    id=1278 sm= med= th=/assets/images/gallery/1278/small/image-17-05-21-06-53.jpg
    0.0002019: pdoTools loaded.
    0.0067320: Conditions prepared
    0.0000679: xPDO query object created
    0.0003850: leftJoined msProductData as Data
    0.0002551: leftJoined msVendor as Vendor
    0.0035899: leftJoined msProductFile as small
    0.0002770: leftJoined msProductFile as medium
    0.0000079: Grouped by msProduct.id, `small`.url, `medium`.url
    0.0000529: Added selection of msProduct: SQL_CALC_FOUND_ROWS `id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `alias_visible`, `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.0000269: Added selection of msProductData: `article`, `price`, `old_price`, `weight`, `image`, `thumb`, `vendor`, `made_in`, `new`, `popular`, `favorite`, `tags`, `color`, `size`, `source`
    0.0000231: Added selection of msVendor: `name` AS `vendor.name`, `resource` AS `vendor.resource`, `country` AS `vendor.country`, `logo` AS `vendor.logo`, `address` AS `vendor.address`, `phone` AS `vendor.phone`, `fax` AS `vendor.fax`, `email` AS `vendor.email`, `description` AS `vendor.description`, `properties` AS `vendor.properties`
    0.0000350: Added selection of msProductFile: url as `small`
    0.0000160: Added selection of msProductFile: url as `medium`
    0.0012341: Processed additional conditions
    0.0018170: Added where condition: class_key=msProduct, msProduct.parent:IN(840,1278,1279,1280), OR:msProduct.id:IN(1270,1271,1272,1276,2445,2674,3319,3326,3327,3360,3361), msProduct.published=1, msProduct.deleted=0
    0.0001121: Sorted by msProduct.id, ASC
    0.0000029: Limited to 5, offset 0
    0.0004950: SQL prepared "SELECT SQL_CALC_FOUND_ROWS `msProduct`.`id`, `msProduct`.`type`, `msProduct`.`contentType`, `msProduct`.`pagetitle`, `msProduct`.`longtitle`, `msProduct`.`description`, `msProduct`.`alias`, `msProduct`.`alias_visible`, `msProduct`.`link_attributes`, `msProduct`.`published`, `msProduct`.`pub_date`, `msProduct`.`unpub_date`, `msProduct`.`parent`, `msProduct`.`isfolder`, `msProduct`.`introtext`, `msProduct`.`richtext`, `msProduct`.`template`, `msProduct`.`menuindex`, `msProduct`.`searchable`, `msProduct`.`cacheable`, `msProduct`.`createdby`, `msProduct`.`createdon`, `msProduct`.`editedby`, `msProduct`.`editedon`, `msProduct`.`deleted`, `msProduct`.`deletedon`, `msProduct`.`deletedby`, `msProduct`.`publishedon`, `msProduct`.`publishedby`, `msProduct`.`menutitle`, `msProduct`.`donthit`, `msProduct`.`privateweb`, `msProduct`.`privatemgr`, `msProduct`.`content_dispo`, `msProduct`.`hidemenu`, `msProduct`.`class_key`, `msProduct`.`context_key`, `msProduct`.`content_type`, `msProduct`.`uri`, `msProduct`.`uri_override`, `msProduct`.`hide_children_in_tree`, `msProduct`.`show_in_tree`, `msProduct`.`properties`, `Data`.`article`, `Data`.`price`, `Data`.`old_price`, `Data`.`weight`, `Data`.`image`, `Data`.`thumb`, `Data`.`vendor`, `Data`.`made_in`, `Data`.`new`, `Data`.`popular`, `Data`.`favorite`, `Data`.`tags`, `Data`.`color`, `Data`.`size`, `Data`.`source`, `Vendor`.`name` AS `vendor.name`, `Vendor`.`resource` AS `vendor.resource`, `Vendor`.`country` AS `vendor.country`, `Vendor`.`logo` AS `vendor.logo`, `Vendor`.`address` AS `vendor.address`, `Vendor`.`phone` AS `vendor.phone`, `Vendor`.`fax` AS `vendor.fax`, `Vendor`.`email` AS `vendor.email`, `Vendor`.`description` AS `vendor.description`, `Vendor`.`properties` AS `vendor.properties`, `small`.url as `small`, `medium`.url as `medium` FROM `modx_site_content` AS `msProduct` LEFT JOIN `modx_ms2_products` `Data` ON `msProduct`.`id` =  `Data`.`id` LEFT JOIN `modx_ms2_vendors` `Vendor` ON Data.vendor=Vendor.id LEFT JOIN `modx_ms2_product_files` `small` ON `small`.product_id = msProduct.id AND `small`.rank = 0 AND `small`.path LIKE '%/small/%' LEFT JOIN `modx_ms2_product_files` `medium` ON `medium`.product_id = msProduct.id AND `medium`.rank = 0 AND `medium`.path LIKE '%/medium/%' WHERE  ( `msProduct`.`class_key` = 'msProduct' AND  ( `msProduct`.`parent` IN (840,1278,1279,1280) OR `msProduct`.`id` IN (1270,1271,1272,1276,2445,2674,3319,3326,3327,3360,3361) )  AND `msProduct`.`published` = 1 AND `msProduct`.`deleted` = 0 )  GROUP BY msProduct.id, `small`.url, `medium`.url ORDER BY msProduct.id ASC LIMIT 5 "
    0.0307870: SQL executed
    0.0004852: Total rows: 14
    0.0001588: Rows fetched
    0.0002320: Returning raw data
    0.0039260: Checked the active modifiers
    0.0100322: Created inline "modChunk" with name "155f451b34a1811dc72be7d50b156266"
    0.0091128: Compiled Fenom chunk with name "modchunk/155f451b34a1811dc72be7d50b156266"
    0.0147741: Time to load products options
    0.0754728: Total time
    4 194 304: Memory usage
      SYAN
      17 ноября 2021, 18:39
      0
      разобрался. проблема была в переносе с сервера на сервер
      Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
      8