-
Notifications
You must be signed in to change notification settings - Fork 67
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
Request: Finer control over "view all" links #84
Comments
thanks for opening this - part of the problem was me bastardizing the original implementation of ishControlsHide to have [views-all] do both. I'd propose a new property for the top-level link. |
It would be really awesome if there was some way to show it for some folders and not others. Not knowing any of the "under the hood" code, something like this could be user friendly, perhaps:
|
One proposition would be to put that fine-grained config in the optional markdown file that lives adjacent to the folder. So in
|
It seems like this is related, on the PHP side: pattern-lab/patternlab-php#257 though when I prepend the file with a |
There's a lot of opportunity to put stuff at that level of navigation /
markdown! Love it
…On Mon, Oct 9, 2017 at 10:58 AM Brad Frost ***@***.***> wrote:
One proposition would be to put that fine-grained config in the optional
markdown file that lives adjacent to the folder. So in 00-global.md
sitting beside atoms/00-global, you could have something like:
---
title: Global Elements
viewAllLink: true | false (defaults to true)
---
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASNw4CHnph2C7SRParFM6P2VfoHVYxUks5sqkKSgaJpZM4Pyrg3>
.
|
I am very opposed to the filename conventions doing magic things. It messes with version control, regexes, file parsing, and is not the correct way to represent the state or presentation of a pattern or group of patterns. This is what the markdown frontmatter is for. |
I concur. A lot of that stuff was put in place before Markdown/YAML support. Now that we have those hooks in there, let's take advantage of them instead. |
Labeling "spec writeup needed" to make sure we review and cull out file convention logic and replace it with markdown/frontmatter |
Good plan. That stuff should be deprecated and I think that's acceptable. |
I'd like to be able to hide the global "view all" link in the top bar (I am using a
"defaultPattern"
already), as that view is just so bogged down once all of my (and third-party) JS starts running on all of my patterns. However, I'd like to keep the "view all" links in the folders (atoms/molecules/organisms) and in the subfolders, as those are not too bogged down (yet!).Currently
ishControlsHide[views-all] :false
controls all of the links - I would like more fine control over which "levels" should be hidden.The text was updated successfully, but these errors were encountered: