Hi guys,
I am trying to open an extension by called dialogs.openExtension
. However, when I installed it via my hosted-server, extensions are given a random id and the id from extension.json
is ignored. Is there a way that I can persist the extension id or retrieve it by extension name?
Thanks.
1 Like
ivan
February 13, 2020, 7:20pm
2
Same here. I’ve been following the documentation and tried to add a new extension with id
set explicitly. But it just doesn’t work.
Also I’d totally be okay with an autogenerated ID, if I didn’t need to use installed dialog extension ID from a field extension.
Can someone from Contentful team please help understanding if this is a bug or not?
ivan
February 14, 2020, 9:35am
3
Here’s what I had to do to work this around:
I’ve introduced an installation parameter to hold the dialog extension ID:
{
"name": "Uploadcare Image Field",
"id": "uploadcare-image-field",
"srcdoc": "./extension.html",
"fieldTypes": ["Object"],
"parameters": {
"installation": [
{
"id": "dialogExtensionId",
"type": "Symbol",
"name": "Uploadcare Image Dialog Extension ID",
"required": true
}
]
}
}
And then provided instructions on how to wire the two extensions together: