Copied to clipboard

Flag this post as spam?

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


  • Nicolai Heilbuth 14 posts 34 karma points
    Nov 11, 2011 @ 10:37
    Nicolai Heilbuth
    0

    How to use CloudFiles provider?

    I have installed CloudFiles provider and set up the account.

    I am able to add the datatype and use it to upload and select an image. The image gets uploaded to Cloud Files as it should.

    But the only values im able to get in XSLT is:

    
     <image><value dataTypeId="1108">containername|imagename</value></image>

     

    I cant seem to find any XSLT extensions for CloudFiles!

    What to do?

  • Nicolai Heilbuth 14 posts 34 karma points
    Nov 11, 2011 @ 16:33
    Nicolai Heilbuth
    0

    Ok, I ended up finding out that writing my own extension for it, is not that complicated.

    Might post my source code if I get it up running, but in short my plan is:

    From the dataTypeId its possible to retrieve the Cloudfiles credentials registered with universal media picker, and from containername and imagename its possible to retrieve the CDN Url through the Cloud Files API. 

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Nov 15, 2011 @ 14:43
    Morten Christensen
    0

    Hi Nicolai,

    Sorry about the late reply.

    I haven't used the provider since writing it when UMP was first released about a year ago. This provider probably needs to be upgraded to latest version of UMP and maybe even Cloud Files API.

    If you download the AWS S3 provider there is an example xslt that you should be able to use with the Cloud Files provider.

    If you want to help upgrade the Cloud Files provider I can send you the source code. Any help is appriciated ;)

    - Morten

  • Nicolai Heilbuth 14 posts 34 karma points
    Nov 15, 2011 @ 16:24
    Nicolai Heilbuth
    0

    Hi Morten

    Thank you for the reply.

    Im not sure if the provider needs to be upgraded or not. The main functionality of the provider (selecting and uploading images) works fine, I just couldnt figure out how to display the images on the frontend.

    I did install the S3 provider, but I can't find the example XSLT. I have example XSLT files for Dropbox, Vimeo and Youtube. The package installation also registered XSLT extensions for Dropbox, Vimeo and Youtube, but not CloudFiles and Amazon.

    I did figure out that I could easily do an XSLT extension myself, that would get the CDN url from the container name and concatenate it with the item name, so that is probably what I will do anyway, but if you can send me the source code, I would appriciate it. Could save me some hours.

    nicolai(at)heilbuth.net

     

    Nicolai 

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Nov 22, 2011 @ 16:07
    Morten Christensen
    0

    Hi Nicolai,

    I haven't forgotten about you, but I'm moving my private repositories to Bitbucket so you will be able to get the code from there.

    I wanted to add a sample xslt, but just noticed that I never included an xslt extension for the Cloud Files provider, so I will try to add an extension when moving the repository.

    - Morten

Please Sign in or register to post replies

Write your reply to:

Draft