pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Improving pattern linking to include View Alls #140

Closed EvanLovely closed 7 years ago

EvanLovely commented 7 years ago

Currently, the link variable for linking between patterns only supports linking to a single pattern, this adds the ability to link to the View Alls such as "Atoms > View All" or "Atoms > Forms > View All".

@bmuenzenmeyer Is this implemented in Node version?

EvanLovely commented 7 years ago

To use: Simply copy the Pattern URL string: In url with ?p=viewall-atoms-all, you'd use link.viewall-atoms-all in Mustache or link['viewall-atoms-all'] in Twig.

bmuenzenmeyer commented 7 years ago

Node supports patterns only. It would probably be pretty simple to implement, however. This would be a spec enhancement, IMO.

bradfrost commented 7 years ago

I like this idea, especially keeping in mind the efforts to evolve PL into more of a style guide tool as well. Would be helpful to be able to link to a cluster of patterns.

EvanLovely commented 7 years ago

Added as issue to spec to better track: https://github.com/pattern-lab/the-spec/issues/35