mediamotionag/contao-article-id-optim-bundle

Article CSS-ID Frontend Output Optimization

Installs: 3 552

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:contao-bundle

pkg:composer/mediamotionag/contao-article-id-optim-bundle

v1.1.0 2023-07-10 15:04 UTC

This package is auto-updated.

Last update: 2025-10-10 20:06:32 UTC


README

About

In older versions of contao, the article-alias was used as the html-id of the article.
So links could be example.com/page.html#article-id.
In Contao 4.4+ this changed, so only if you define an id in the expert-settings, there is a readable id in the markup/html.
This bundle uses the article alias as css-id, if no id is set in the expert settings, so the fallback is the same as in contao <4.

Installation

Install composer if you haven't already, then enter this command in the main directory of your Contao installation:

composer require mediamotionag/contao-article-id-optim-bundle

Usage

  1. Install and clear cache
  2. Enjoy

Contribution

Bug reports and pull requests are welcome