Copied to clipboard

Flag this post as spam?

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


  • mfeola 117 posts 221 karma points
    Feb 24, 2010 @ 17:06
    mfeola
    0

    Adding Path to media images

    I have been working with umbraco for a while now and the customization options are great, theres one thing i am looking for that i haven't found a way to do yet.

    In the media section, when you upload a file you get the link of the file after you save it just above the upload fields, in images you get a preview of the image itself and to get the link to the image you have to click on it and copy the address out.  I know this makes perfect sense to me but not to the clients I have to customize the site for so I was wondering if there was a way to either add the path to the image in to that section, or if I am missing a special command that I can add as a label along with the other labels already in the media image item "umbracoHeight, umbracoBytes"

    Also if someone could direct me to a list of those special commands that would be great, if that list exists, the closest i have found to that is this: 
    http://our.umbraco.org/wiki/reference/umbraco-best-practices

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 24, 2010 @ 17:23
    Dirk De Grave
    0

    Hi mfeola,

    it doesn't make sense to add path to images in media section as a media item could be used from different sites in the same umbraco instances, which could have different host names attached, so the link to the media item is *unknown* until runtime (that is, when a page containing a link to a media item is being rendered

    But, nothing prevents you from adding an extra property (could be of label type), and save domain info (if you're only having one, that'll make it simpler) when the media item is being uploaded. Can be done using the umbraco event model for media items.

    Check here for documentation on events

    Cheers,

    /Dirk

     

  • mfeola 117 posts 221 karma points
    Feb 25, 2010 @ 22:11
    mfeola
    0

    alright, i think i am understanding how code words like umbracoHeight, umbracoBytes and umbracoNaviHide are used now.  they are just standard names of keywords rather than special keywords that umbraco recognizes and does processing for on their own.

  • 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