Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[UX] Blocks: Add a "Taxonomy term: Depth" Visibility condition #2955
Describe your issue or idea
Just as I often have different layouts for nodes, by node-type, I often need different layouts for categories based on term-depth. For example, my top-level terms need landing pages, but my deeper terms could use their own layout (or even the default layout).
However, without a Visibility condition to select only the top-level terms, I'm at a bit of a loss.
referenced this issue
Jan 25, 2018
Tested this in the sandbox:
I wonder if a description of "Depth" on the
And maybe tests but we seem to have no tests for other access plugins so no fault there.
I think we could use
That's a good idea. I tried to re-use terminology found in Views so that we'd at least be consistent, but yes more explanation might be necessary.
I looked for other core API functions that we could use for this, but didn't find anything suitable.
It might, in some cases (though perhaps not all as a term can have multiple parents). The function
Thanks for opening this ticket @jenlampton ...and for the PR
It's those little things that make backdrop great
PS: I wonder if the same concept could be implemented for URL path depth. If the wildcard