Download the PHP package umd-lib/umdds_dynamic_components without Composer

On this page you can find all versions of the php package umd-lib/umdds_dynamic_components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package umdds_dynamic_components

UMD Libraries Dynamic Components Module

This Drupal module provides configurable blocks that display UMD Libraries Design System components. The first configurable block is the Person Component Block, which displays person content using the UMD Libraries Person web component.

Features

Requirements

Installation

  1. Clone or copy this module to your Drupal modules directory:

  2. Install the module via Drupal UI or Drush:

Usage

Creating a Person Block

  1. Go to Structure > Block Layout in Drupal
  2. Click "Place block" in the region where you want the block
  3. Search for and select "UMD Libraries Person Component"
  4. Configure the block:
    • Enter a block title (optional)
    • Use the autocomplete field to search and select a Person content item
    • The autocomplete will filter by person title as you type
  5. Save the configuration

Field Mapping

When a Person node is selected, the block automatically extracts and maps the following fields:

Drupal Field Component Property
title person_name
field_professional_title person_title
field_phone person_phone
field_email person_email
field_library_department person_department

Empty fields are omitted from the component output.

API Endpoints

Autocomplete Endpoint

Example:

Component Integration

The module renders the UMD Libraries Person web component using a Twig template. The component expects:

For more information about the UMD Libraries Person component, see: https://github.com/umd-lib/umdlib-design-system-theme/tree/4.x/components/umd-libraries-person

Architecture

Development Notes

Adding New Components

To add additional configurable blocks for other UMD Libraries Design System components:

  1. Create a new block plugin in src/Plugin/Block/
  2. Add a new autocomplete controller method for searching relevant content
  3. Define routing for the autocomplete endpoint
  4. Create a Twig template for rendering the component
  5. Register the template in hook_theme() in the .module file

Caching

The block implements proper caching using the #cache property with the selected node's cache tags. This ensures that the block is invalidated whenever the Person node is updated.

Troubleshooting

Block not showing content

Autocomplete not working

Component not rendering

License

This module is part of the UMD Libraries Drupal ecosystem.


All versions of umdds_dynamic_components with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
drupal/core Version ^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package umd-lib/umdds_dynamic_components contains the following files

Loading the files please wait ...