fenom pdoResources default tpl
Вывожу сниппет
{'!pdoResources' | snippet: [
'parents' => $_modx->config['ds-id-events'],
'context' => $_modx->context.key,
'tpl' => '@FILE chunks/header_new_item.tpl',
'limit' => 3,
'depth' => 0,
'includeContent' => 1,
'sortby' => 'publishedon',
'sortdir' => 'ASC'
]}
Как сюда добавить — если результат пустой (default) выводить чанк header_new_item-default.tpl?
{'!pdoResources' | snippet: [
'parents' => $_modx->config['ds-id-events'],
'context' => $_modx->context.key,
'tpl' => '@FILE chunks/header_new_item.tpl',
'limit' => 3,
'depth' => 0,
'includeContent' => 1,
'sortby' => 'publishedon',
'sortdir' => 'ASC'
]}
Как сюда добавить — если результат пустой (default) выводить чанк header_new_item-default.tpl?
Комментарии: 11
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
Вот что выводит
Я и написал как выводить чанк