Using an image in the Theme folder in TincyMCE.

Permalink
I have an image in my Theme folder which is currently in the themes template files. ie.
<img src="<?=$this->getThemePath()?>/theme/images/logo.png" />


I'd like to move this into a Content block but TinyMCE changes the html to:
<img class="logo" src="&lt;?=$this-&gt;getThemePath()?&gt;/theme/images/logo.png" />


Note: The php tag above does not appear in TinyMCE but added by the forum.

I appreciate that I can move the image to the C5 Files folder and insert it that way, however it seems more sensible to leave it with the theme.

nevf
 
defunct replied on at Permalink Reply
defunct
Hi nevf,

1) create an area in your theme
2) login to concrete5, add an image block.
3) choose add image and once the file manager comes up choose upload, select your image on your hard drive and you are done.

defunct.
nevf replied on at Permalink Reply
nevf
Thanks. I understand I can do that, however what I'd like to do is use an image located in the Theme folder, as I stated in my original post.

Neville