Download the PHP package dmwg/wisski_trails without Composer
On this page you can find all versions of the php package dmwg/wisski_trails. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmwg/wisski_trails
More information about dmwg/wisski_trails
Files in dmwg/wisski_trails
Package wisski_trails
Short Description Drupal module that shows a document-graph visualisation in an iframe on the entity detail page.
License GPL-3.0-or-later
Informations about the package wisski_trails
WissKI Trails
A Drupal module that displays document-graph visualizations in an iframe on entity detail pages. This module depends on hitherto unreleased data-processing infrastructure and is not usable out of the box!
Description
WissKI Trails provides a configurable block that can be placed on entity detail pages to display interactive document-graph visualizations. The module integrates with the WissKI ecosystem, allowing users to explore relationships between entities through visual representations.
The visualization is loaded via an iframe from a configurable external service, with the entity ID automatically passed to construct the appropriate visualization URL.
Requirements
php>=8.3- Drupal 10.3 or higher (also compatible with Drupal 11)
- Drupal Views module (core)
Installation
Via Composer (recommended)
Then enable the module:
Or via the Drupal admin interface at admin/modules.
Manual Installation
- Download the module from GitHub
- Extract to your Drupal installation's
modules/contribdirectory - Enable the module via Drush or the admin interface
Configuration
Module Configuration
- Navigate to Configuration > Web Services > WissKI Trails (
/admin/config/wisski_trails) - Set the Base URL for your visualization service
- Save the configuration
The iframe URL will be constructed as: {base_url}/{entity_id}
Block Placement
- Navigate to Structure > Block layout (
/admin/structure/block) - Click Place block in your desired region
- Find and place the WissKI Trails block
- Configure visibility settings as needed (typically restricted to entity detail pages)
- Save the block configuration
Usage
Once configured and placed, the block will automatically:
- Detect the current entity ID on entity detail pages
- Construct the iframe URL using the configured base URL
- Display the visualization iframe if an entity ID is found
Development
Prerequisites
- Composer installed
- PHP 8.3 or 8.4
- Git
Getting Started
Clone the repository and install dependencies:
Available Commands
Code Quality
Check coding style (Drupal standards):
Auto-fix coding style violations:
Run static analysis with PHPStan (level 5):
Normalize composer.json:
Testing
Run unit tests:
Run tests with coverage report (requires Xdebug or PCOV):
Pre-commit Workflow
Before committing changes, run all quality checks:
Coding Standards
- Standard: Drupal coding standards
- PHPStan Level: 5
- Namespace:
Drupal\wisski_trails\ - PSR-4 Autoloading:
src/directory
Maintainers
Current maintainer:
- Oliver Baumann - DMWG, University of Bayreuth
Contributing
Issues and pull requests are welcome on GitHub.
License
This project is licensed under GPL-3.0-or-later. See the LICENSE file for details.
Support
- Issues: GitHub Issues
- Source: GitHub Repository