krot

MODX pdoPage show my class MapProduct

Sep 22nd, 2017
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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();
RAW Paste Data