Hi,

You can use view config object to get path to module root folder.

E.g.

[{ $oViewConf->getModuleUrl("shoptifind") }] and you will get url to your
module root folder



Rimvydas

[email protected]
Phone +370 37 333053
Fax +370 37 333054
www.oxid-esales.com




-----Original Message----- From: Stefan Moises
Sent: Thursday, July 05, 2012 12:18 PM
To: [email protected]
Subject: [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

Reply via email to