Page 1 of 1

image displaying as text

Posted: Wed Sep 09, 2009 3:41 pm
by xJSBx
Hello. I am new to CMS Made Simple and I have been asked to correct this problem on a site. I have looked through other posts here concerning this issue and nothing has worked. Any ideas?

URL to page in question: http://sweetwaterhailey.com/index.php/floorplan

CMS Made Simple version: 1.6

As you can see the it is displaying the image code instead of the actual image.

xJSBx

Re: image displaying as text

Posted: Wed Sep 09, 2009 5:08 pm
by Jos
That's because the html-code has been made inactive , probably by the WYSIWYG-editor.

Your sourcecode looks like <img style="border: 1px solid #752a09" ..etc..
Where it has to be something like this: <img style="border: 1px solid #752a09" ..etc..

You can go to menu: Extensions » TinyMCE WYSIWYG
and check the option "Show checkbox to turn wysiwyg on/off"

You can now turn off the editor while editing your content.

Re: image displaying as text

Posted: Wed Sep 09, 2009 6:36 pm
by xJSBx
Jos wrote:
You can go to menu: Extensions » TinyMCE WYSIWYG
and check the option "Show checkbox to turn wysiwyg on/off"

You can now turn off the editor while editing your content.
I went to the above location and this checkbox was already checked and the editor has been turned off. Still no luck.

xJSBx

Re: image displaying as text

Posted: Wed Sep 09, 2009 6:47 pm
by Jos
Well, you still have to edit the html-code manually  ;)

Re: image displaying as text

Posted: Wed Sep 09, 2009 8:29 pm
by xJSBx
Jos wrote: Well, you still have to edit the html-code manually  ;)
When I go into the code via the CMS I see this:
{cms_selflink page='71' text=''}

When I look at the page source via a browser I see the above, but with HTML encoding.
<img style="border: 1px solid #752a09" title="Carriage House" src="uploads/images/carriagehse_thumb.jpg" border="0" alt="Carriage House" width="170" />

These particular images are being encoded. This apparently started happening after the latest upgrade to 1.6. I would also like to understand what changed and why this started.

I am assuming the {cms_selflink....} is pointing to the page that is linked to the image. Is this correct? I can replace the selflink with a href, but like to get some insight before going through the process.


xJSBx

Re: image displaying as text

Posted: Wed Sep 09, 2009 9:16 pm
by blast2007
It's a well known issue  >:(

See here for (an unsupported) workaround to be re-applied after every upgrade.

regards
blast

Re: image displaying as text

Posted: Wed Sep 09, 2009 9:24 pm
by Jos
Try to use the image parameter:

Code: Select all

<p>{cms_selflink page='71' text='Carriage House' image='carriagehse_thumb.jpg' title='Carriage House' alt='Carriage House' imageonly=1}</p>
See also the help section that belongs to the cms_selflink tag at Extentions > Tags


edit:  and all the styling stuff should be in your CSS-stylesheet

Re: image displaying as text

Posted: Wed Sep 09, 2009 10:39 pm
by xJSBx
Thanks for the help everyone. I got it fixed. Here is how I did it.

This is what it was:
{cms_selflink page='71' text=''}

I changed it to:


xJSBx