Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » SideBar images

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 2481 Views
  • mhull
    Avatar
    Community Member
    79 Posts

    Re: SideBar images Link to this post

    What I am seeing on the page in the sidebar is the code, for example in the sidebar I put an image and text, and it is showing the code but not the image:

    <img src="http://localhost:8888/silverstripe/assets/Home/_resampled/StripThumbnail-home.jpg" title="home.jpg" alt="home.jpg" class="destwidth=" />

    If I look at the source of the page it shows the tags are not rendering properly:
    &lt;img src="http://localhost:8888/silverstripe/assets/Home/_resampled/StripThumbnail-home.jpg" title="home.jpg" alt="home.jpg" class="destwidth=" /&gt;

    Is there something I need to change in the TinyMCE? if so what would it be?

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: SideBar images Link to this post

    Can anyone help with this html problem? is it to do with TinyMCE? What do I need to change?

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: SideBar images Link to this post

    Is this something to do with the HTMLEditorField.php?

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: SideBar images Link to this post

    Can anyone offer any advise? I still haven't managed to get the problem solved

  • jam13
    Avatar
    121 Posts

    Re: SideBar images Link to this post

    That output looks like it's being xml escaped. You mentioned that you were using $Sidebarcontent.XML before so it's possible that the template is still cached, so try flushing the page.

    If it's not that, then I have no idea.

    2481 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.