Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thanh Pham 23 posts 140 karma points
    Jan 25, 2017 @ 08:48
    Thanh Pham
    0

    Load content dynamically from external source

    Hey guys, I'm facing this issue and not sure if there is a solution for that. Basically, I have built a car dealer website which has a showroom page. On the showroom page we show all images of latest models and we manually update these images within Umbraco. The problem is every year we have new car models and we have to update these images. We don't want to do this manually, instead we want to automate it and we already have our own API which returns images of latest models. How do I make a document type which has a property called ModelImage to load external data source or is there any workaround that I'm not aware of? Hope I made myself clear. Thanks

  • Tim Watts 90 posts 395 karma points
    Jan 25, 2017 @ 09:13
    Tim Watts
    0

    Hi,

    See this link: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53736-How-to-upload-images-programmatically-into-a-upload-property-in-umbraco-7-back-office-content-page

    This gives a method of creating an Umbraco media item from an external source (file on the server somewhere). You would then need to access the relevant content to reference the uploaded media item.

    You have to decide of course what will trigger the Media update, for example an external service running overnight.

    Tim

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 25, 2017 @ 09:45
    Richard Soeteman
    0

    You could have a look at CMSImport http://soetemansoftware.nl/cmsimport which can load JSON data, it only needs that images are stored in the site structure but there are work arounds to download these.

Please Sign in or register to post replies

Write your reply to:

Draft