Skip to content

Dynamic pages: add class to body for each dynamic path part #640

Open
@g105b

Description

@g105b

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions