Hi! just a quick thought: how can getImageUrl() find your module-img-folder without the image / path as an argument? I can't tell, if it supports admin-img-folders in modues currently, but this was my first thought. The "new way" of using oxViewConfig::getImageUrl() is by providing the path and filename as parameter - if I remember it correctly.
Regards, Kai -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Stefan Moises Gesendet: Donnerstag, 5. Juli 2012 11:18 An: [email protected] Betreff: [oxid-dev-general] Custom admin images with 4.6 modules Hello OXID Devs, I've encountered another small problem with the 4.6.x module installer functionality. For our ShOptiFind search module, we are using a lot of custom images in our admin templates, and if I put everything inside the module directory as I'd prefer (module files, admin and core files, view files and own templates including images), the images are not found/displayed. E.g. we have image files in the directory "\modules\shoptimax\shoptifind\out\admin\img\icons" and if I try to include them in an admin template with e.g. <input type="image" src="[{ $oViewConf->getImageUrl() }]icons/Save.png" ... then the image is not found of course.... So I have to copy that directory to the "\out\admin\img\" directory in the shop root at the moment... will there be a solution for this in the future, e.g. by the possibility to specify resources like JS, CSS and images in the metadata file, too? Thanks, Stefan -- Mit den besten Grüßen aus Nürnberg, Stefan Moises ******************************************* Stefan Moises Senior Softwareentwickler Leiter Modulentwicklung shoptimax GmbH Guntherstraße 45 a 90461 Nürnberg Amtsgericht Nürnberg HRB 21703 GF Friedrich Schreieck Tel.: 0911/25566-0 Fax: 0911/25566-29 [email protected] http://www.shoptimax.de ******************************************* _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
