About
View custom table module provide you functionality to integrate your custom table data to views, and access all it's column in views. This module use hook_view_data to add custom tables in views. this module provides you following functionalities.
- Auto integrate custom table data to views
- Auto map mysql data types with drual data types
- Extend relationship of custom table data to drupal entities
How to use:
- Download and extract files in module folder.
- Enable module from module list
- Go to Home » Administration » Structure » Views » View Custom Table
- Add your custom table in system using "Add Custom Table" link
- Add Relationship with drupal entities if any, otherwise leave none.
- Clear drupal cache
- Add a new view and you will see your custom table name in "Show" drop-down field.
Notes for developers
- Each custom table must have a primary key.
- Column related to drupal entity must be numeric.
Drupal 8
Steps to install module and use module is same, but for drupal 8 date sort is not implemented yet, we will update it very soon.
Install with Composer: Drupal 8 & 9
$ composer require 'drupal/view_custom_table:^2.0'
Project information
- 3,886 sites report using this module
- Created by sagar_cis on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Maintenance release
Pre-release version: 2.0.6-beta2 released 12 Feb 2024 at 05:09 UTC
Beta maintenance release, add json column type support and bugfix for use of entity data table,
Development version: 2.0.x-dev updated 26 Mar 2024 at 03:24 UTC
Bug fixes
Development version: 7.x-1.x-dev updated 22 Oct 2021 at 15:35 UTC