-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Dynamic pages: add class to body for each dynamic path part #640
Labels
Projects
Comments
Can be implemented here: WebEngine/src/Middleware/RequestHandler.php Lines 202 to 213 in 64daaae
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, on URL
/shop/computers/apple/macbook-pro
There can be multiple dynamic path parts:
page/shop/@shop-area/@brand/@item.html
Currently, the body gets the following classes:
dir--page
dir--page--shop
dir--page--shop--_shop-area
dir--page--shop--_shop-area--_brand
dir--page--shop--_shop-area--_brand--_item
uri--page--shop--_shop-area--_brand--_item
It would also be good to see the following classes, or something similar, so the individual dynamic pages can be referenced in CSS where appropriate:
_shop-area--computers
_brand--apple
_item--macbook-pro
The text was updated successfully, but these errors were encountered: