问题
I have created a Contentful sidebar extension, which is intended to display other entires which are related to the entry currently loaded in the editor.
I can query the space from CLI tool and my extension is returned, so it was created successfully.. sidebar
is set to true
and there's HTML in the srcdoc
property.
However, when I go to the Contentful interface, nothing has changed -- there is no record of my new extension anywhere, and I can't figure out how to get it to show up anywhere.
Two questions:
I had to specify a
fieldTypes
property. I did:['Text']
, for lack of any better ideas, even though this extension isn't really meant for a single field, but for the entry as a whole.Do I need to "add" a sidebar extension to a content type? If so, how? When I modify the content type, the only way to do that seems to be by modifying fields. Do I add a "pseudo field" to hold the reference to the sidebar extension?
Do I need to publish the extension? It's a Contentful object, like anything else, which makes me think it might need to be published (it's current at version 1), but there doesn't seem to be a method call for this, and it doesn't appear anywhere in the Contentful app interface.
回答1:
The Extension usually show up in the appearance tab in the settings of a field, More info : https://www.contentful.com/blog/2016/07/06/ui-extensions-sdk/
来源:https://stackoverflow.com/questions/40003006/how-do-i-activate-a-contentful-sidebar-extension