My Image Doesnt Appear in the SitefinityLabel (Cssed sfitemR

Posted by Community Admin on 04-Aug-2018 06:36

My Image Doesnt Appear in the SitefinityLabel (Cssed sfitemRichText)

All Replies

Posted by Community Admin on 03-Apr-2017 00:00

Hi everyone

I have create Dynamic content which has a LongText field for containing my richtext text, and I want to display the richtext that contains an image by my own custom .ascx widget

I run the page that contain .ascx widget to display my richtext with my image from my library, the text formatted correctly, but the image doesnt appear properly(only alt text).

So I checked the image source and i found the sfref="[images|OpenAccessDataProvider|tmb:small]...."
and i decided to delete the sfref, and the image showed correctly

But it is impossible to ask the user to delete the sfref in the HTML source each time the user create a content that use an image

How to make the <sf:SitefinityLabel tag shows image correctly, without change the image source manually(delete sfref in the image tag) if the content has images

I use this tag to display richtext:

<sf:SitefinityLabel ID="lblRichText" runat="server" Text='' WrapperTagName="div" HideIfNoText="true" CssClass="sfitemRichText" data-sf-field="content" data-sf-ftype="LongText"/>



This thread is closed