GithubHelp home page GithubHelp logo

Comments (3)

wardi avatar wardi commented on June 10, 2024

If "display_snippet": null isn't working then that's a bug. "form_snippet": null is how we hide form snippets and I'd like display_snippet to behave the same way.

If private is one that should be excluded by default let's fix that too. I'm not very happy with how the excluded list is defined in the template right now. I think it would be better to have some default "display_snippet": none values for specific fields in the schema instead (so it's easy to override or add more excluded items)

from ckanext-scheming.

Zharktas avatar Zharktas commented on June 10, 2024

@wardi apparently resource fields do not have hiding with display_snippet: null

https://github.com/ckan/ckanext-scheming/blob/master/ckanext/scheming/templates/scheming/package/snippets/additional_info.html#L16

https://github.com/ckan/ckanext-scheming/blob/master/ckanext/scheming/templates/scheming/package/resource_read.html#L48

Although it would be easy to fix, I also think that this feature should be documented.

from ckanext-scheming.

ryangermann-gov-on-ca avatar ryangermann-gov-on-ca commented on June 10, 2024

What might be generally useful would be a parameter that lets Scheming fields be set to "private" so that they only render under the same conditions as Form Profiles will be discoverable: if a user is a mamber of an Organization, they can see Private Dataset pages, but also for Public datasets otherwise discoverable by non-authenticated users, they would see "private" Additional fields.

from ckanext-scheming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.