DEV Community

M. Alexandre J-S William ELISÉ
M. Alexandre J-S William ELISÉ

Posted on • Originally published at coderparlerpartager.fr on

[challenge] Règles de routeur personnalisées

POURQUOI ?

Ce projet a commencé grâce à un challenge qu'un ami joomler a posté sur le JUG Breizh sur FB le 16 Février 2021. Voici le challenge: Pour une url ayant la structure suivante: /categorie-parente/sous-cat-a/article-1 /categorie-parente/sous-cat-a/article-2 /categorie-parente/sous-cat-c/article-7 Comment faire pour que les urls fonctionnent aussi sous cette forme: /categorie-parente/article-1 /categorie-parente/article-2 /categorie-parente/article-7 En d'autres mots sans les sous-catégories.

QUOI ?

La réponse à ce délicieux puzzle est de créér des règles de routeur personnalisées.

COMMENT ?

TLDR; Des règles de routeur personnalisées injectées via un plugin système lors de l'événement onAfterInitilise juste après que Joomla! est "démarré"

Télécharger

Contacter Alexandre

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more