Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Feb 22, 2013 @ 00:32
    Ali Sheikh Taheri
    0

    Umbraco 6 working with media

    Hi 

    what is API should I use for retrieving images on V6? DynamicMedia?

    Thanks

    Ali

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Feb 24, 2013 @ 12:23
    Jan Skovgaard
    1

    Hi Ali

    Have you checked out the documentation for the Umbraco 6 API here? http://our.umbraco.org/documentation/Reference/Management-v6/Models/Media and here http://our.umbraco.org/documentation/Reference/Management-v6/Models/MediaType

    Hope this helps.

    /Jan

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Feb 24, 2013 @ 16:01
    Ali Sheikh Taheri
    0

    Hi Jan,

    Is not recommended to use Media class as it queries Database instead of reading value from cache (XML). any other suggestion?

    Thanks

    Ali

     

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Mar 01, 2013 @ 13:15
    Ali Sheikh Taheri
    101

    Looks like the answer is this: 

    http://our.umbraco.org/documentation/Reference/Mvc/querying ;

    for Media

    @Umbraco.TypedMedia(1234)

    for Content

    @Umbraco.TypedContent(1234)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies