Advertisement
krot

MODX pdoPage show my class MapProduct

Sep 22nd, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. [[!pdoPage?
  2.     &class=`MapProduct`
  3.     &tpl=`@INLINE [[+ID]]::[[+art]]</br>`
  4.     &element=`getSheets`
  5.  &limit=`10`
  6. ]]
  7. [[!+page.nav]]
  8. сниппет getSheets:
  9. <?php
  10. $path = MODX_CORE_PATH . 'components/pdotools/model/pdotools/';
  11. $pdoFetch = $modx->getService('pdofetch','pdoFetch', $path, $scriptProperties);
  12. $pdoFetch->setConfig($scriptProperties);
  13. return $pdoFetch->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement