[Solved] DisplayImage in Front-End

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
s7orm
New Member
New Member
Posts: 8
Joined: Tue Mar 18, 2008 11:09 am

[Solved] DisplayImage in Front-End

Post by s7orm »

Hi,

I wanted to ask if there is a method to display an image in the front end (I saw (and currently use) that there is such a method in the admin theme):

Code: Select all

$gCms->variables['admintheme']->DisplayImage('icons/system/edit.gif', $this->Lang('edit'),'','','systemicon')
I guess I could use the same method for the front end, but it is safe?

Thanks in advance.
Last edited by s7orm on Wed Mar 26, 2008 8:46 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: DisplayImage in Front-End

Post by calguy1000 »

I assume you're writing a module.

If you use the CGExtensions module there's a DisplayImage method there.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
s7orm
New Member
New Member
Posts: 8
Joined: Tue Mar 18, 2008 11:09 am

Re: [Solved] DisplayImage in Front-End

Post by s7orm »

Yes I am developing a new module. Well I didn't want to install a whole new module just for 1 method, so I just checked, how it is defined in CGE (didnt thought it will be so simple) and I wrote my own (similar) function.

Thanks for the tip.
Post Reply

Return to “CMSMS Core”