codesache / addrelcanonical-bundle
Allow to rel='canonical' entries for glossray-, faq- and news-entries
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^8.3
- contao/core-bundle: ^4.13 || ^5.3
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 hascontao/modules/ModuleFaqReader
- News
"contao/news-bundle
still hascontao/modules/ModuleNewsReader
- Calendar
"contao/calendar-bundle
still hascontao/modules/ModuleEventReader
so the bundle should work with Contao 5.x already. (TODO test it!).
References
- https://github.com/plenta/contao-rel-canonical-bundle Does more or less the same, but does not handle
glossaray items (see https://github.com/oveleon/contao-glossary-bundle)