[SOLVED] Using custom images with a module
Posted: Sat May 29, 2010 11:55 pm
Hi there,
I'm writing my first module, it ties into FEU to allow users to add and edit module content (much like the News fesubmit) and I'd like to use icons in the same way that I can in the admin pages with $gCms->variables['admintheme']->DisplayImage
I'm quite happy to use my own icons (I can't help but notice that modules such as MenuManager, FrontEndUsers, ModuleMaker etc have folders of images) but I can't figure out how to reference the images. I haven't managed to find any code in the aforementioned modules doing so either...
So, two questions really:
(a) Is there a 'DisplayImage' equivalent that I should use when outputting a front end page?
(b) If not, how do I get the folder of the module to access the image? Guessing it starts with $gCms-> but haven't managed to get much further than that! ;)
Cheers all,
Phil
I'm writing my first module, it ties into FEU to allow users to add and edit module content (much like the News fesubmit) and I'd like to use icons in the same way that I can in the admin pages with $gCms->variables['admintheme']->DisplayImage
I'm quite happy to use my own icons (I can't help but notice that modules such as MenuManager, FrontEndUsers, ModuleMaker etc have folders of images) but I can't figure out how to reference the images. I haven't managed to find any code in the aforementioned modules doing so either...
So, two questions really:
(a) Is there a 'DisplayImage' equivalent that I should use when outputting a front end page?
(b) If not, how do I get the folder of the module to access the image? Guessing it starts with $gCms-> but haven't managed to get much further than that! ;)
Cheers all,
Phil