image displaying as text

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
xJSBx
New Member
New Member
Posts: 4
Joined: Wed Sep 09, 2009 3:35 pm

image displaying as text

Post 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
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: image displaying as text

Post 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.
xJSBx
New Member
New Member
Posts: 4
Joined: Wed Sep 09, 2009 3:35 pm

Re: image displaying as text

Post 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
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: image displaying as text

Post by Jos »

Well, you still have to edit the html-code manually  ;)
xJSBx
New Member
New Member
Posts: 4
Joined: Wed Sep 09, 2009 3:35 pm

Re: image displaying as text

Post 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
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: image displaying as text

Post by blast2007 »

It's a well known issue  >:(

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

regards
blast
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: image displaying as text

Post 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
Last edited by Jos on Wed Sep 09, 2009 9:46 pm, edited 1 time in total.
xJSBx
New Member
New Member
Posts: 4
Joined: Wed Sep 09, 2009 3:35 pm

Re: image displaying as text

Post 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
Post Reply

Return to “CMSMS Core”