[PP-1] change from the global configuration object to the data-skipto approach

Created on 24 August 2025, 12 days ago

Problem/Motivation

at the moment the skipto module is using the global configuration approach which is labeled as "legacy support" on https://skipto-landmarks-headings.github.io/page-script-5/

Steps to reproduce

Proposed resolution

switch to the preferred approach using the data-skipto attribute, that might also fix some issue with setting overrides not being applied. but i am postponing the issue on Make the skipTo module configurable on a per user basis Active due to the amount of changes introduced there.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Postponed

Version

2.0

Component

Code

Created by

🇩🇪Germany rkoller Nürnberg, Germany

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

Comments & Activities

  • Issue created by @rkoller
  • 🇩🇪Germany rkoller Nürnberg, Germany

    i've managed to get a more drupal like approach working locally. i've added two small snippets to the skipto.js file that enable pagescript 5 to basically use drupalSettings. i am not sure if it would make much sense to add that snippet upstream cuz strictly speaking the easiest and preferable approach for folks wanting to use skipto would be using the skipto module. but maybe i can open an issue and simply ask the maintainer. would be the most convenient if it would get added but still also not biggie to add it every new skipto asset release? but that approach is definitely the cleanest and saves more module code.

  • 🇩🇪Germany rkoller Nürnberg, Germany
Production build 0.71.5 2024