public function render() { $Path = $this->getConfig()->getModulesDir() . 'shoplocator/marker/'; /* $sBasePath = $this->getConfig()->getConfigParam('sShopDir'); echo $sBasePath; $sBasePath = $this->getConfig()->getModulesDir()."shoplocator/"; echo $sBasePath; */ //echo $this->getConfig()->getShopUrl().'modules/shoplocator/out/src/images/';; // Ordner auslesen... $ordner = $this->getConfig()->getConfigParam('sShopDir') . 'modules/shoplocator/marker/'; $allfiles = getMarkerimages($ordner); $this->_aViewData['ordner_marker'] = 'modules/shoplocator/marker/'; $this->_aViewData['markers'] = $allfiles; $soxIdQuery = 'SELECT OXID FROM `stores_settings` '; $soxId = oxDb::getDb()->getOne($soxIdQuery, false, false); // load object $oShoplocator_Settings = oxNew("shoplocator_settings"); $oShoplocator_Settings->load($soxId); $this->_aViewData["edit"] = $oShoplocator_Settings; return parent::render(); }
public function render() { parent::render(); $myConfig = $this->getConfig(); $folder = $this->getConfig()->getConfigParam('sShopDir') . 'modules/shoplocator/marker/'; // Image Array in function.php $allfiles = getMarkerimages($folder); $this->_aViewData['markers'] = $allfiles; $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId(); if ($soxId != "-1" && isset($soxId)) { // load object $oShoplocator = oxNew("shoplocator"); $oShoplocator->load($soxId); $this->_aViewData["edit"] = $oShoplocator; //Disable editing for derived articles if ($oShoplocator->isDerived()) { $this->_aViewData['readonly'] = true; } } return "admin_shoplocator_main.tpl"; }