如何在CKAN中启用ckanext-scheming扩展。

huangapple go评论82阅读模式
英文:

How to enable ckanext-scheming extension in CKAN

问题

我正在尝试为CKAN中的数据集创建自定义表单。

我已经安装了ckanext-scheming扩展,并将scheming插件添加到插件中,如下所示:

ckan.plugins = activity scheming_datasets

我还设置了以下内容:

scheming.dataset_schemas = ckanext.scheming:subfields.yaml
scheming.presets = ckanext.scheming:presets.json
scheming.dataset_fallback = false

我期望在访问数据集定义表单时(例如,添加数据集),能看到一个新的用户界面,但在CKAN中定义数据集的界面上仍然没有看到任何变化。

我还清除了浏览器缓存并重新启动了CKAN,但没有成功。

英文:

I am trying to have a custom form for Datasets in CKAN.

I have installed ckanext-scheming extension and added the scheming plugin to the plugins like this:

ckan.plugins = activity scheming_datasets

I have also set the following:

scheming.dataset_schemas = ckanext.scheming:subfields.yaml
scheming.presets = ckanext.scheming:presets.json
scheming.dataset_fallback = false

I expected to see a new UI when going to the Dataset definition form (e.g., Add Dataset), but still don't see any change in the UI of defining datasets in CKAN.

I also cleared the browser cache and restarted CKAN but no success.

答案1

得分: 1

我通过将CKAN版本从2.9.8更改为2.10.0来修复了这个错误,而我的ckanext-scheming版本是3.0.0

英文:

I fixed this error by changing the CKAN version from 2.9.8 to 2.10.0, and my ckanext-scheming version is 3.0.0

huangapple
  • 本文由 发表于 2023年7月27日 19:21:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76779242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定