mediamotionag/contao-article-id-optim-bundle

Article CSS-ID Frontend Output Optimization

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

This package is auto-updated.

Last update: 2024-04-10 16:49:00 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