Copied to clipboard

Flag this post as spam?

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


  • nickornotto 402 posts 906 karma points
    Apr 09, 2013 @ 11:02
    nickornotto
    0

    How to extend Upload datatype

    Hi,

    I need to create a datatype which uses Upload to upload a file (CSV). When I upload the file I need to use the data in the file and create a structured xml for the use on the current page.

    Can anyone advise me how to start? I suppose I need to create my custom datatype but I don't know how to use Upload datatype in it. I have never done custom datatype before.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 09, 2013 @ 21:27
    Jan Skovgaard
    0

    Hi Eva

    Could you try to describe what it is that you're going to use the uploaded CSV file for? Sounds like you need to generate some XML based on the CSV file but I'm not sure uploading it to Umbraco is the right move.

    Therefore I would like to hear a bit more detalied description of what you're trying to achieve.

    Looking forward to hearing from you.

    /Jan

  • nickornotto 402 posts 906 karma points
    Apr 10, 2013 @ 10:04
    nickornotto
    0

    Hi, Thanks for reply.

    I just need to generate some content on a page from the file. It's just a part of the page that I want to update, so CMSImport for example is not a solution for me.

    The conetnt of the CSV should be transformed to an xml fragment and then update the page xml or be added to the page if not exists.

    I use Embeded content for one of the properties within this document type. CSV content should replace the xml used by embeded content property so I could then edit the property values if I need on the page.

    I hope it makes sense.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft