Comments (4)
@timgiles for splitting into sections you could look at customizing the templates that generate the form to add a section break where indicated in the schema. any values not used by scheming are passed along, so you can put almost anything you like in there.
If you'd like to contribute a change to ckanext-scheming for section headings (maybe "fields" that have a section_label and no field_name) I'd certainly consider merging it
from ckanext-scheming.
Thanks Ian. I did add it to the extension and we have added a few more
'visual' options. I will look to collect them together and put a merge
request in later this week.
On 23 August 2015 at 20:07, Ian Ward [email protected] wrote:
@timgiles https://github.com/timgiles for splitting into sections you
could look at customizing the templates that generate the form to add a
section break where indicated in the schema. any values not used by
scheming are passed along, so you can put almost anything you like in there.If you'd like to contribute a change to ckanext-scheming for section
headings (maybe "fields" that have a section_label and no field_name) I'd
certainly consider merging it—
Reply to this email directly or view it on GitHub
#36 (comment)
.
from ckanext-scheming.
The first thing I see is that you're using
ckanext.scheming:sluschemav014.json
as a dataset schema name. That would mean you have to put your schema inside the scheming extension directory. You should use ckanext.mycustomextension:sluschemav014.json
or a file path instead.
I also notice you're using a strange looking "dataset_type". The dataset_type field is used to build the URLs for that type of dataset, so stick to lowercase-and-underscores there. Did you read https://github.com/open-data/ckanext-scheming/#dataset_type ?
As for choosing dataset types you need to direct your users to /mycustomtype/new etc. for your custom type by overriding the ckan templates in your own extension.
from ckanext-scheming.
Thanks - after an upgrade to 2.3 and some more work, we have implemented our schema. Works great - although we need to add in a lot of the supplementary info like required etc...
I was wondering, with long schemas:
i) Is there a way to break them up in to sections? Is this planned? either on the dataset page or split into separate pages (I suspect this goes beyound the scope of scheming)
ii) Could this be done with dummy MD fields with a new display snippet?
ii) In a similar thought, do you have a suggestion how to present sectional titles/text in along the schema?
Thanks again for the good work
from ckanext-scheming.
Related Issues (20)
- Option to display help_text before the form input block HOT 2
- Option to display grouped metadata by relying on start_form_page
- CKAN - Custom plugin/theme error datastore using fluent presets
- Combination of Form Pages and repeating_subfields do not work properly in edit mode. HOT 2
- Formpages does not work when a required field is in the second page HOT 1
- Empty multiple_checkbox is not saved
- Handling many start_form_page sections
- Can't use choices_helper for a required field HOT 3
- Customizing group/about.html
- Validators ignored for fields with repeating subfields
- Applying multiple schemas not working as expected HOT 2
- Repeating subfield form snippet displays help text inconsistently HOT 2
- Rendered `select` elements on form do not have "dropdown" arrow HOT 1
- Missing in documentation HOT 1
- ckan.plugins.core.PluginNotFoundException: scheming_datasets HOT 2
- Install Error: Error processing line 1 HOT 3
- Groups/Organizations silently ignore `create_validators`
- Translations for label name and placeholder not working. HOT 4
- Other extra fields will be deleted after editing dataset
- Check_ckan_version() throwing error due to missing argument HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-scheming.