Copied to clipboard

Flag this post as spam?

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


  • Nick Holder 9 posts 99 karma points
    Aug 21, 2019 @ 21:41
    Nick Holder
    0

    V8 Get current content property values AngularJS DataType

    In Umbraco 7 you could get the property values using editorState.current.tabs. In Umbraco 8 tabs does not exist and I can't find the way to get them. How do you get the content properties in Umbraco 8?

  • Sören Deger 733 posts 2844 karma points c-trib
    Aug 22, 2019 @ 06:32
    Sören Deger
    100

    Hi Nick,

    due to the new variation concept, there are major changes in the EditorState Object. An easy way to get an overview is to write the editorstate object into the console or using the javascript debugger.

    This is an example from an own project, how the editorstate looks in v8:

    enter image description here

    In v8 you can find the properties of the editorState in variants:

    editorState.current.variants
    

    Every variant has an array with all content apps, every app has the groups and every group the specific properties.

    I hope this help you?

    Best, Sören

  • Nick Holder 9 posts 99 karma points
    Aug 22, 2019 @ 15:56
    Nick Holder
    0

    Thanks that's what I was looking for.

  • Ant 8 posts 79 karma points
    Jan 17, 2021 @ 22:57
    Ant
    0

    variants is an array; what is it an array of?

Please Sign in or register to post replies

Write your reply to:

Draft