Copied to clipboard

Flag this post as spam?

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


  • praveen 113 posts 164 karma points
    Jul 15, 2011 @ 06:11
    praveen
    0

    umbraco.library API question

    Hi

    UMBRACO 4.0

    I have created a "Property" CountrySmallImg1 in the "Document Types" and the "Property Type " is text string,
    I then have assigned the url like: /media/46680/fn_india_h.jpg

    in my .NET user control, I read this property  CountryImg.ImageUrl = umbraco.library.GetItem("CountrySmallImg1");
    this is all working fine, no problems

    instead of passing the raw url to the property, I want to be able to select the images from the media folder so that users
    can themselves change the pictures without the involment of the developers.

    I am also looking for umbraco.library API documentation, any help will be greatfully accepted

    Many thanks in advance

    Regards
    Praveen

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jul 15, 2011 @ 07:45
    Kim Andersen
    0

    Hi Praveen

    You can find some documentation on the API here: http://our.umbraco.org/wiki/reference/api-cheatsheet

    And a list over the umbraco.library here: http://our.umbraco.org/wiki/reference/umbracolibrary - I know that this is written for XSLT developers, but you can of course use the same mehods in your C#.

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft