Copied to clipboard

Flag this post as spam?

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


  • Asif Malik 200 posts 336 karma points
    Dec 11, 2012 @ 18:45
    Asif Malik
    0

    DataType Grid upload datatype

    Hi i know the upload field datatype is not yet compatable with the DataType Grid, however i was hoping to egt some guidance as to how to go about adding this in.

    I have started by adding in an extension function (UploadFieldDataTypeFunctions) that implement the IDataTypeFunctions<umbraco.editorControls.uploadfield.DataTypeUploadField> interface.

    Additionally i have added in code to the DataTypeExtensions class to the methods ToDtgString, ConfigureForDtg however i am getting Nullreference errors.

    Any guidance would be much appreciated

  • Asif Malik 200 posts 336 karma points
    Dec 11, 2012 @ 18:59
    Asif Malik
    0

    Managed to dig a little deeper in the umbraco core and it seems like the FileHandlerData is giving the error .... becuase the property id is 0. not sure how to go forward on this other than wirting a custom file upload data type becuase I would need to create a folder (based on the property id) and then create sub folders (or change the file name during save) to avoid overwritting files ...

    Any direction would be good.

    Thanks

  • Ove Andersen 435 posts 1536 karma points c-trib
    Jan 05, 2013 @ 10:39
    Ove Andersen
    0

    Awesome that you´re trying to help extend DTG!

    I need to look more into it, but it should be possible to get it to work.

Please Sign in or register to post replies

Write your reply to:

Draft