How do I “activate” a Contentful sidebar extension?

有些话、适合烂在心里 提交于 2019-12-06 13:55:53

问题


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:

  1. 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.

  2. 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?

  3. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!