tbaddade / redaxo_url

REDAXO 5 AddOn zur URL-Generierung für eigene AddOns (ehemals Url Control, ehemals Frau Schultze)
MIT License
46 stars 22 forks source link

Profil-Schlüssel (ehemals "urlParamKey" in URL1) wieder hinzufügen #248

Closed alxndr-w closed 1 year ago

alxndr-w commented 2 years ago

Vormals konnte man mit der Property urlParamKey ermitteln, um welches Profil es sich handelt, das unter der URL angesprochen wurde. Das ist nun nicht mehr möglich.

image

tbaddade commented 2 years ago

Ist über das Profil zu erreichen

$manager = Url::resolveCurrent();
if ($manager && $profile = $manager->getProfile()) {
    dump($profile->getNamespace());
}
alxndr-w commented 2 years ago

Docs, gerne offen lassen.

tbaddade commented 1 year ago

@alxndr-w Magst du die Docs anpassen?

alxndr-w commented 1 year ago

@tbaddade ist mir 'ne Ehre, hoffe es passt so.