Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Usage Milestone: Devel PHP Module devel_php crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Tone

3 sites Security covered Drupal 10–11
View on drupal.org

This module allows editors to create and manage frontend variations, like custom CSS, as content entities. These variations can then be applied to content. Caution is advised due to the potential for frontend code injection.

Introduction

The Tone module provides editor supplied frontend variations (CSS) as content entities.

Caution: Allowing site users to inject frontend code is inherently dangerous. Every site where this module is in use needs to be audited carefully. It is recommended to restrict create/edit access to tone entities to trusted roles

  • For a full description of the module, visit the project page

  • To submit bug reports and feature suggestions, or track changes, visit the issue tracker

Requirements

This module requires no modules outside of Drupal core.

  • Inline Entity Form: When enabled, tone entities can be created, edited and deleted easily from within the referencing content entity.

Installation

  • Install as you would normally install a contributed Drupal module. Visit the Installing Modules documentation page for further information.

Configuration

  • Configure the user permissions in Administration » People » Permissions:

    • Administer tone types

      Users with this permission will be able to create, edit, delete tone entity types.

      Note: this permission should only be granted to trusted roles.

    • Administer tones, Create tone, Edit tone, Delete tone

      Users with this permission will be able to create, edit, delete tone entities.

      Note: depending on the tone type configuration, this permission permits frontend code injection. In this case this permission should only be granted to trusted roles.

  • Create and edit Tone Types in Administration » Structure » Tone types

    • Configure plugins which control how tone entities of a certain type are rendered and attached to the page.

    • Create fields which are used as source for user controlled values to be injected into the rendered source code.

  • Attach tones to content types in Administration » Structure » Content types

    • Create entity references to tone types in order to allow editors to choose from a curated list of tones.

    • Alternatively use Inline Entity Forms on the tone entity reference field and allow editors to create, edit and delete tone entities from within the content edit form.

    • Manage displays and choose which tone reference gets attached for every configured view mode: Drag the Tone From X extra field from the Disabled section into the active area. Also ensure that a matching tone reference field is present in the active area and the field formatter is set to Rendered entity.

Maintainers

Current maintainers:

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.1.0 Stable 10–11 Dec 5, 2024
1.x-dev Dev 10–11 Dec 5, 2024