Comments (7)
I'll need this soon so I'll see if there's a clean way to make listing the new types generic. possibly just a separate "new" button for each.
from ckanext-scheming.
@fibonaki This isn't currenly handled by scheming but it would be great to add. The trick is to use the dataset new page for your type of dataset, so if your dataset_type is "maps" you would visit `http://mysite/maps/new'
from ckanext-scheming.
Hi @wardi! Thanks for your response! :)
I am not familiarized with python and I think exists in CKAN a template that is called each time that a user visits http://mysite.org/dataset, and here is where I should to modify content and add each new dataset button (by the default there is only one - http://mysite.org/dataset/new):
- "Add new dataset A" - http://mysite.org/datasetA/new
- "Add new dataset B" - http://mysite.org/datasetB/new
I have seen that you have opened a new github's reference for handling multiple dataset schemas. But, could you please tell me as a brief notes by the moment which would be the python file / template of "http://mysite.org/dataset" in CKAN that I should to change for adding these buttons? That's only for testing it... If I'm not wrong I guess it shouldn't require much time.
Thanks.
from ckanext-scheming.
Hi,
Does the plugin still works that way ? When I try to add a dataset corresponding to my second schema (/camel_photos/new), I can only get 404.
Thanks
from ckanext-scheming.
Hi @gsueur the URL should be /camel-photos/new
from ckanext-scheming.
I'll need this soon so I'll see if there's a clean way to make listing the new types generic. possibly just a separate "new" button for each.
Not sure the current state of this issue.
Seems a lot of folks put an extra page in front or a portal to handle navigation for creation for different schemas. This is especially so if you have a CMS or other product in front of CKAN to handle enterprise portal capabilities.
Also could depend how people deal with different schemas (we are shooting for show all datasets option but I have noticed some break down different areas for different schemas or use separate CKAN instances if the logic-per-schema is significantly different).
We followed the approach mentioned by @wardi, for now have implemented multiple buttons for the Add Dataset. For every dataset schema listed in the configuration file...adds buttons alognside the Add Dataset button.
Fits the bill for now - but we may revisit down the road.
Still in Dev - no polish for production ready yet.
from ckanext-scheming.
Actually, someone has made another more recent post with a solution based on maps and redirects:
Would this fit better with respect to CKAN/ckanext-scheming direction / road map?
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.