-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$table zu Extension-Point + neuen Extension-Point #22
Conversation
Kannst grad beschreiben wofür du den |
Du meinst den URL_GENERATOR_URL_CREATED EP; diesen verwende ich um die Ausgangs-Url kontrollieren zu können. Ich habe z.b. aktuell einen Artikel "Shop" welcher unter der Url /de/shop erreichbar ist. |
Das könntest du auch ohne den EP. Einfach anstatt den Produkt-Detail-Artikel den Shop-Artikel verwenden. |
Du kannst dennoch die Produkte auch diesem Artikel zuweisen und über den UrlParamKey die unterscheiden. Bsp: $id = UrlGenerator::getId();
$data = UrlGenerator::getData();
if ($id > 0 && $data->urlParamKey == 'product_id') {
// Produktdetail
} elseif ($id > 0 && $data->urlParamKey == 'category_id') {
// Auflistung der Produkte nach Kategorie
} else {
// Auflistung aller Produkte
} |
ja hatte ich Anfangs auch gedacht, jedoch beim rex_getUrl hatte ich das Problem dass IDs nicht mehr eindeutig sind, oder gibts auch da einen Workaround? |
@lexplatt das wurde mit diesem Commithttps://github.com/tbaddade/redaxo_url/commit/9a18174e6f9b8ae87fb3d2bcd4f026fedcf12f05 beseitigt. Wäre daher jetzt alles gut? |
Workaround ist oben beschrieben. Mit der Version 2 kommen zusätzliche ExtensionPoints um noch Einfluss zu nehmen. |
No description provided.