+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Image Not Displaying

Image Not Displaying

8 posts, 0 answered
  1. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    10 Jun 2014
    Link to this post

    Hi All,

    I'm Using Custom Modules For displaying data (version sitefinity 6.2)

    I wrote content in rich textbox editor, it's displaying with styles but images are not displaying it showing like

    <img src="[images|librariesProvider1]9a358221-bc46-6ba5-86bb-ff0000e9d7ca" title="redstone-map">

     Please help me , How to Get Image url instead of GUID

    Thanks in Advance

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    09 Dec 2016
    12 Jun 2014
    Link to this post
    Hello Ajay,

    As far as I understood you have created a dynamic module using the Module Builder. Can you please give some details about the module you have created and the data you would like to display. What is the image you would like to display and where do you add this image tag. Is it also possible to send us some screenshots or to record a video demonstrating the steps you take and the behavior on your side.

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    12 Jun 2014 in reply to Sabrie Nedzhip
    Link to this post

    Hi Sabrie Nedzhip ,

         Yes I'm created Dynamic module using module builder and add two columns (textbox, RichTextEditor). I'm Selecting Image with ImageManager, (please find Attached images). I'm Getting data and displayed in my site it shown wrong image reference (please check image 2 and 3).

    Please let me know , i done any mistake 

    Thank's for Quick Replay, 

  4. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    14 Jun 2014
    Link to this post

    Hi Sabrie Nedzhip ,

    please find attached Images, it contains End to End procedure with coding

    please check once and help me how to solve this.

    Thanks

    Ajay

  5. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    09 Dec 2016
    17 Jun 2014
    Link to this post
    Hello Ajay,

    Thank you for providing me with the additional information about your dynamic module.

    I used your approach for displaying a dynamic module item on the frontend by getting the item programmatically. However, I was not able to reproduce the issue and the image which I added through the image manager displayed properly on the frontend. Here is a short video demonstrating the steps I took on my side. 

    Can you please make sure that the image is displaying properly when you navigate to the url of the image. You can test this by going to Content -> Images and open the library where you have uploaded the image. Then please click on the Actions link of the image and then click View original. Here is also a short video for your convenience.

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  6. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    23 Jun 2014 in reply to Sabrie Nedzhip
    Link to this post

    Hi Nedzhip,


    Thanks for Reply , I'm Doing same as Above but I Did n't Get Image URL.

    here i'm adding sample video containing my code.

    I'm using version 6.2 and Using multisite management  

    Please Help me how to solve this.

     

    Thanks 

    Ajay
  7. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    09 Dec 2016
    24 Jun 2014
    Link to this post
    Hello Ajay,

    Thank you for recording a video demonstrating the issue on your side.

    It is really a strange issue which I am not able to reproduce in a test Sitefinity 6.2 project. It seems that the link to the image is not properly resolved. This may happen if you have moved the image to another location or if you have changed the url of the image. In this cases when you select the images in the Sitefinity's built-in ContentBlock widget which is using the HtmlField the link is resolved automatically. However, when you use the LongText field as a custom field in a module the link to the image will not be automatically resolved.

    Can you please take a look at the following blog post where this issue is described in more details and try to use the suggested approach there for resolving the url by using the LinkParser class:

    //get the html from HtmlField and convert it in formt usable for ResolveLinks method
    var fixedHtml = LinkParser.UnresolveLinks(Name);
      
    //resolve the links if there has been a change in the url
    NameLiteral.Text = LinkParser.ResolveLinks(fixedHtml, DynamicLinksParser.GetContentUrl, null, false);


    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  8. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    25 Jun 2014 in reply to Sabrie Nedzhip
    Link to this post

    Hi Sabrie Nedzhip ,

    You are so Great :) it's working Fine.

    Really Awesome

    Thanks,

    Ajay 

     

8 posts, 0 answered