Can anyone enlighten me on how I can retrieve the rendered code of a widget on graphql?
Here is a graphql request for Banner Carousel Collection in the Demo Site. None of its fields returns a rendered widget.
Here is the output:
{
"data": {
"BannerCarouselCollection": [
{
"identifier": "a46b2b68-877a-4010-8216-55b1b394f743",
"widgetCode": "#dotParse('/application/vtl/carousel/banner-carousel.vtl')",
"banners": [],
"widgetCodeJSON": {},
"_map": {
"publishDate": 1599065204377,
"language": {
"languageId": 1,
"language": "English",
"languageCode": "en",
"country": "United States",
"countryCode": "US",
"languageFlag": "en_US",
"isoCode": "en-us",
"id": 1
},
"inode": "4a59802f-e5bd-4293-931d-98b174806b68",
"path": "/content.efd6722e-bec9-4572-a0bf-3e7ab0f09173",
"host": "48190c8c-42c4-46af-8d1a-0cd5db894797",
"locked": false,
"stInode": "73061f34-7fa0-4f77-9724-5ca0013a0214",
"contentType": "BannerCarousel",
"identifier": "a46b2b68-877a-4010-8216-55b1b394f743",
"banners": [],
"widgetTitle": "Destinations",
"folder": "SYSTEM_FOLDER",
"hasTitleImage": false,
"sortOrder": 0,
"hostName": "
demo.dotcms.com",
"modDate": 1599065204377,
"title": "Destinations",
"baseType": "WIDGET",
"archived": false,
"working": true,
"live": true,
"owner": "dotcms.org.1",
"languageId": 1,
"widgetCodeJSON": {},
"url": "/content.efd6722e-bec9-4572-a0bf-3e7ab0f09173",
"titleImage": "TITLE_IMAGE_NOT_FOUND",
"modUserName": "Admin User",
"hasLiveVersion": true,
"modUser": "dotcms.org.1",
"widgetCode": "#dotParse('/application/vtl/carousel/banner-carousel.vtl')"
}
}
]
}
}