Update Project description

Created on 20 June 2023, over 1 year ago

Thanks, great module!

Problem/Motivation

The project description is for Drupal 7, since there's no need to update template files in Drupal 10.

Also, several cool features are not described, since the module offers not only adding classes, but also setting an ID as well as adding multiple key-value attributes.

Steps to reproduce

Visit https://www.drupal.org/project/block_class and see that the intro text is for Drupal 7, and that several features (id, attributes) are not described:

Block Class allows users to add classes to any block through the block's configuration interface. By adding a very short snippet of PHP to a theme's block.tpl.php file, classes can be added to the parent <div class="block ..."> element of a block.

Proposed resolution

  1. Update the project description
  2. Add an extra image showing id, class and key-value attributes in the block parent element

Updated description

Block Class allows users to add classes, ID, and key-value attributes in the parent element of any block through the block's configuration interface. This is useful for example with Views, which has a "CSS class" setting for content level, but not the root element of a block. Hooray for more powerful block theming!

Installing the Drupal 8.x / 2.x version

Download with composer require drupal/block_class and enable the module. That's it!

For more, see the documentation and a demo of some of the great features.

Installing the Drupal 7.x version

  1. Enable the module

[...]

Add image on project page

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

2.0

Component

Documentation

Created by

🇩🇰Denmark ressa Copenhagen

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

Comments & Activities

Production build 0.71.5 2024