Copied to clipboard

Flag this post as spam?

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


  • Sean Dooley 288 posts 527 karma points
    Feb 23, 2016 @ 13:26
    Sean Dooley
    0

    Umbraco.Tags value is always empty

    I've setup a Document Type to be used in a Grid Layout as follows

    • Brand Colour (Colour Picker)
    • Limit (Numeric)
    • Filters (Tags)

    Looking at the Grid Layout json, I can see that the property Filters has been set.

    {
                  "grid": 12,
                  "allowAll": false,
                  "allowed": [
                    "button",
                    "heading",
                    "latestItems",
                    "htmlBlock",
                    "embedSnippet",
                    "embedVideo",
                    "imagePicker"
                  ],
                  "controls": [
                    {
                      "value": {
                        "docType": "6b2b05ba-a3be-4e5a-bdb5-98a8628d45e9",
                        "value": {
                          "name": "Latest News",
                          "brandColour": "ffdc00",
                          "limit": "",
                          "filters": [
                            "Scotland"
                          ],
                          "filter": "Scotland"
                        },
                        "id": "218a99f2-a73b-447d-40ea-7363bb9ce7fd"
                      },
                      "editor": {
                        "alias": "latestItems"
                      }
                    }
                  ]
                }
    

    Yet when trying to render the Document Type the property Filters never seems to have a value.

    Model.HasValue("filters") is always false.

    Any thoughts why this might be happening?

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 24, 2016 @ 14:55
    Lee Kelleher
    0

    Hi Sean,

    I haven't tried the Tags property-editor with DTGE before, so not sure why it's not displaying the value.

    It does seem strange that the value is populated in the JSON, so assuming that something in the Tags' PropertyValueConverter isn't playing nicely.

    Would you mind raising an issue on our GitHub repo?
    https://github.com/leekelleher/umbraco-doc-type-grid-editor/issues

    Thanks,
    - Lee

  • Sean Dooley 288 posts 527 karma points
    Feb 24, 2016 @ 15:44
    Sean Dooley
    1

    Thanks Lee.

    I've raised an issue on the GitHub repo

    https://github.com/leekelleher/umbraco-doc-type-grid-editor/issues/43

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 24, 2016 @ 15:45
    Lee Kelleher
    0

    Thanks Sean, much appreciated!

Please Sign in or register to post replies

Write your reply to:

Draft