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.
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.
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.
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.
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
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
is working on a reply...