Giter Club home page Giter Club logo

dkan_catalog_sdc's Introduction

DKAN Catalog SDC

This module uses Drupal SDC to provide custom components to present metadata and distributions through Twig templates.

Requirements

This SDC module is still considered experimental but in versions of Drupal 10.1 and greater, it is now included in Core.

Viewing the provided components

The schema for the components provided by the module can be seen by visiting Configuration > User Interface > Single Directory Components when logged into the site.

Using the components

To use the components, you will need to include them in your theme or modules's Twig templates. Each component has certain requirements and if values provided do not match the requirements, Drupal will display the error when refreshing the page.

For example to include a file download with SVG you will need to add the following to your template file:

{{
  include('dkan_catalog_sdc:distribution_download', {
  downloadURL: <<The href for the file to download.>>,
  title: <<The title of the file, will show the file name from url if empty.>>,
  mediaType: <<Media type formated like mimeType/csv>>,
  format: <<Media type but without the mimeType, usually in all uppercase too.>>
}, 
  with_context = false) 
}}

dkan_catalog_sdc's People

Contributors

dgading avatar

Watchers

Janette Day avatar David Sumner avatar Paul Mitchum avatar  avatar

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.