Skip to content

Aktuelle Hauptkategorie auslesen in Modul / Template #37

Answered by skerbis
skerbis asked this question in Q&A
Discussion options

You must be logged in to vote

Kategorie aus Pfad ermitteln:

$currentPath = rex_article::getCurrent()->getPathAsArray();
$cat = rex_category::get($currentPath[0]);

Replies: 1 comment

Comment options

skerbis
Jan 26, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by skerbis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant