Allow modules to modify JS settings for the JPlayer

Created on 2 August 2021, over 3 years ago
Updated 27 February 2023, almost 2 years ago

Problem/Motivation

Due to analytics and tracking, we need to add a variable parameter value to the MP3 player being rendered on a node.
Doing this change through the templating system was complicated as the relationship was 2 references away.
Using view alter hooks was not possible because the JS settings were made before the view was rendered.

Proposed resolution

Add an alter hook before sending the render array that contains the JS settings.

Feature request
Status

Needs work

Version

1.9

Component

Code

Created by

🇪🇨Ecuador betoaveiga Daule, Guayas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024