This contains the source files for the "Omnipedia - Attached data" Drupal module, which provides the attached data framework for Omnipedia.
Attached data is our internal name for the content displayed in pop-ups on Omnipedia. It quickly became apparent during development that we couldn't manually embed all the pop-up content because it would be a nightmare to keep up to date. We needed to be able to define pop-up content once and have a system automatically attach it where ever it's referenced. The resulting system allows editors to define each one as their own entities which are then automatically attached to all wiki pages that reference them.
There are currently two types of attached data:
-
Abbreviations: These define the many abbreviations used across Omnipedia; the target string is the abbreviated form and the content is the fully spelled out form.
-
Wikimedia links: These are the paragraph-length pop-ups found all across Omnipedia; the target string is a topic name, and the content is what is displayed in the pop-up; these are so named because at one point we intended these to actually link off-site to Wikipedia and related sites, but decided against it.
-
PHP 8.1
Before attempting to install this, you must add the Composer repositories as described in the installation instructions for these dependencies:
-
The
ambientimpact_core
andambientimpact_ux
modules. -
The
omnipedia_content
,omnipedia_core
, andomnipedia_date
modules.
Ensure that you have your Drupal installation set up with the correct Composer
installer types such as those provided by the drupal/recommended-project
template.
If you're starting from scratch, simply requiring that template and following
the Drupal.org Composer
documentation
should get you up and running.
In your root composer.json
, add the following to the "repositories"
section:
"drupal/omnipedia_attached_data": {
"type": "vcs",
"url": "https://github.com/neurocracy/drupal-omnipedia-attached-data.git"
}
Once you've completed all of the above, run composer require "drupal/omnipedia_attached_data:^4.0@dev"
in the root of your project to have
Composer install this and its required dependencies for you.
The following major version bumps indicate breaking changes:
-
4.x:
-
Requires Drupal 9.5 or Drupal 10.
-
Increases minimum version of Hook Event Dispatcher to 3.1 and adds support for 4.0 which supports Drupal 10.
-
Removes the
omnipedia_attached_data_migrate
module; you can still find it in the 3.x branch.
-
-
5.x:
-
Increased
drupal/ambientimpact_ux
to 2.x from 1.x. -
Increased
omnipedia_content
to 7.x from 6.x and removed dependency on theomnipedia_tooltip
which was removed. -
Removed Drupal 9.5 support as it's now end-of-life.
-