patternlab-php-core icon indicating copy to clipboard operation
patternlab-php-core copied to clipboard

Add ability to strip pattern type category prefixes from main menu nav

Open bradwade opened this issue 8 years ago • 0 comments

This just cleans up the main menu navigation if you have to prefix your pattern type categories.

Pattern type category prefixes can be defined in config.yml as an array named "prefixes" containing strings of prefixes. For example if your pattern types are called, "theme1_atoms", "theme1_molecules", etc. you can add to your config.yml:

prefixes

  • "theme1_"

...then theme1_ will not appear in the main menu navigation of pattern lab.

Needing to prefix the top level pattern type directories is a common use case when working with multiple pattern lab instances integrated with a single Drupal 8 installation for example.

bradwade avatar Jul 20 '17 16:07 bradwade