Git Product home page Git Product logo

Comments (3)

abjerner avatar abjerner commented on July 17, 2024

@ninjaonsafari Did you read my answer here: skybrud/Skybrud.Umbraco.GridData#10 ?

Even though I don't know about LeBlender specifically, you need to create a converter (implementing the IGridConverter interface in my package), that handles your custom editors. Otherwise my package doesn't now how to handle/parse the value of a given control, and the token.Value<LeBlenderValue>() will simply return null.

from leblender.

wiedikerli avatar wiedikerli commented on July 17, 2024

@abjerner i did read your answer. Here is what i've got https://github.com/ninjaonsafari/Opten.Umbraco.GridData.LeBlender

from leblender.

wiedikerli avatar wiedikerli commented on July 17, 2024

here is the token i get from the GridData extension. I want to parse this to LeBlenderValue.

{  
   [  
      {  
         "image":{  
            "value":"1066",
            "dataTypeGuid":"93929b9a-93a2-4e2a-b239-d99334440a59",
            "editorAlias":"image",
            "editorName":"Image"
         },
         "title_en":{  
            "value":"Glatt",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_en",
            "editorName":"Title"
         },
         "title_de":{  
            "value":"Glatt",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_de",
            "editorName":"Title"
         },
         "title_es":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_es",
            "editorName":"Title"
         },
         "title_it":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_it",
            "editorName":"Title"
         },
         "title_fr":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_fr",
            "editorName":"Title"
         }
      },
      {  
         "image":{  
            "value":"1066",
            "dataTypeGuid":"93929b9a-93a2-4e2a-b239-d99334440a59",
            "editorAlias":"image",
            "editorName":"Image"
         },
         "title_en":{  
            "value":"Fugenlos",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_en",
            "editorName":"Title"
         },
         "title_de":{  
            "value":"Fugenlos",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_de",
            "editorName":"Title"
         },
         "title_es":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_es",
            "editorName":"Title"
         },
         "title_it":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_it",
            "editorName":"Title"
         },
         "title_fr":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_fr",
            "editorName":"Title"
         }
      },
      {  
         "image":{  
            "value":"1066",
            "dataTypeGuid":"93929b9a-93a2-4e2a-b239-d99334440a59",
            "editorAlias":"image",
            "editorName":"Image"
         },
         "title_en":{  
            "value":"Bunt",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_en",
            "editorName":"Title"
         },
         "title_de":{  
            "value":"Bunt",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_de",
            "editorName":"Title"
         },
         "title_es":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_es",
            "editorName":"Title"
         },
         "title_it":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_it",
            "editorName":"Title"
         },
         "title_fr":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_fr",
            "editorName":"Title"
         }
      },
      {  
         "image":{  
            "value":"1066",
            "dataTypeGuid":"93929b9a-93a2-4e2a-b239-d99334440a59",
            "editorAlias":"image",
            "editorName":"Image"
         },
         "title_en":{  
            "value":"Flexibel",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_en",
            "editorName":"Title"
         },
         "title_de":{  
            "value":"Flexibel",
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_de",
            "editorName":"Title"
         },
         "title_es":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_es",
            "editorName":"Title"
         },
         "title_it":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_it",
            "editorName":"Title"
         },
         "title_fr":{  
            "value":null,
            "dataTypeGuid":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
            "editorAlias":"title_fr",
            "editorName":"Title"
         }
      }
   ]
}

from leblender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.