codesache/addrelcanonical-bundle

Allow to rel='canonical' entries for glossray-, faq- and news-entries

1.0.1 2025-04-14 07:52 UTC

This package is auto-updated.

Last update: 2025-09-14 08:46:11 UTC


README

Allows to add individual

<link rel="canonical" href="...">

entries for pages that show glossary-, FAQ-, calendar, or news items (i.e. pages where the respective reader module is included).

Supported bundles

  • Glossary "oveleon/contao-glossary-bundle with version constraint "^2.0".
  • FAQ "contao/faq-bundle
  • News "contao/news-bundle
  • Calendar "contao/calendar-bundle.

Note

Not selecting an option for “rel="canonical" setzen"” or selecting the option “Nicht setzen” does not mean there will be no <link rel="canonical" ...> in the page. It just means, this bundle will not perform any action (and Contao will probably set the header value).

Roadmap

Make this bundle work with Contao 5.x.

Required work: switch from the legacy content elements and frontend modules to controllers.

As of now

  • Glossary should be OK already
  • FAQ "contao/faq-bundle still has contao/modules/ModuleFaqReader
  • News "contao/news-bundle still has contao/modules/ModuleNewsReader
  • Calendar "contao/calendar-bundle still has contao/modules/ModuleEventReader

so the bundle should work with Contao 5.x already. (TODO test it!).

References