Copied to clipboard

Flag this post as spam?

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


  • Matthew Jackson 17 posts 36 karma points
    Sep 24, 2012 @ 07:38
    Matthew Jackson
    0

    XSLT Media Manager

    I am a umbraco newbie so please consider this.

    I want a way to upload an image via a umbraco upload property and programatically store it within the media tree within a path matching the current content stucture.  Im sure it would be possible to use the nodeName + structure of the current content page to iterate and create structure within Media dir.  

    I have watched several videos on umbraco .tv http://umbraco.com/help-and-support/video-tutorials/developing-with-umbraco/events/friendly-media-item-paths/TVPlayer outlining how I can use handlers to create freindly names within the umbraco media directory.  however when I include the MediaHandler.cs file that comes with Samples.rar to the app_code directory it doesnt do anything. Do I need to point the upload control to this handler somehow.  THis is not shown within the umbraco.tv video and it appears to be cut short.

    This is step one of a multiple step process and Im stuck

    Step 1:

    upload image (iconimage) to media dir equal to content structure Example -- (Media\Business Services\image)

    OR

    upload image (iconimage) directly to mediaroot, search by iterating through childnodes on medianame -- exhaustive

    Step 2:

    Auto crop (iconimage) mediatype using crop template -- (iconimagecrop), params 400 x 300.

    Step 3: Find child (iconimagecrop) for Current Node XSLT

    Start with placeholder image currentNode params -- imageFolder,mediaName, SourceImageNOde
        return childnodes images
        **Load cropped images by pushing full image paths to modified javascript array.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft