enonic / lib-guillotine

Apache License 2.0
3 stars 0 forks source link

X data and using content id #248

Closed poi33 closed 2 years ago

poi33 commented 2 years ago

If i define my Xdata with an image selector how can I get its image url?

{ guillotine {
    getSite {
         x {
             name
             data
         }
     }
}}

Will return:

getSite": {
        "x": [
          {
            "name": "x-data",
            "data": "{icon=<id_here>}"
          }
        ]
      }

So I will only get an ID and i never get to the image type too call its image Url

Same with xAsJson

"xAsJson": {
          "<app-name>": {
            "page-data": {
              "icon": "<id_here>",
            }
          }
        },

I never get to the image type that supports imageUrl

anatol-sialitski commented 2 years ago

@poi33 could you please check it on v6.0.0? From v6.0.0 x is dynamic type which base on descriptor

poi33 commented 2 years ago

This seems to be fixed in 6.0.0-b3 👍