Replies: 5 comments 1 reply
-
We decided to use the Custom Schema plugin to solve this problem. https://github.com/ckan/ckanext-scheming This allowed us to redefine the data collected in its entirety. |
Beta Was this translation helpful? Give feedback.
-
I installed it using pip install -e "git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming" but I don't see any new thing in the UI. Should I do anything else? |
Beta Was this translation helpful? Give feedback.
-
I have 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 But I still don't see any change in the UI of defining datasets in CKAN. |
Beta Was this translation helpful? Give feedback.
-
You have to custom write a schema as the documentation says. I would suggest you look for a vendor with experience in this to help.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Mohsen ***@***.***>
Sent: Thursday, July 27, 2023 1:30 AM
To: ***@***.***>
Cc: Richard ***@***.***>; ***@***.***>
Subject: Re: [ckan/ckan] Custom fields (Discussion #7716)
I have 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
But I still don't see any change in the UI of defining datasets in CKAN.
—
Reply to this email directly, view it on GitHub<#7716 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABZXBSFJUZ7JUNM6LFKW63XSIKKVANCNFSM6AAAAAA2YI54RI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
By writing a custom schema, do you mean, for example, the "subfields.yaml" file which is already existing in ckanext-scheming extension? |
Beta Was this translation helpful? Give feedback.
-
I can only define three custom field for datasets. How is it possible to have more custom fields?
Beta Was this translation helpful? Give feedback.
All reactions