Open klonos opened 7 years ago
...eventually, when we have the reference feature in core, I would like us to replace the NID and UID visibility conditions with reference autocomplete fields that search by content title + NID and username + UID. I think that @docwilmot was working on that on an issue somewhere if I'm not mistaken.
In NID we have a "reverse" checkbox after the condition, here we have a set of radio buttons before the condition. Can we please choose one and stick with it?
I like all improvements, but consistent use of "reverse" checkbox most of all.
but consistent use of "reverse" checkbox most of all.
@Al-Rozhkov do you have a specific preference as to what should be used (single "revert" checkbox vs two radio options) and where the control should be placed (above vs below the setting)?
I like single "Reverse (NOT)" checkbox. It is compact and understandable. I used to position below the setting, but position above feels better in semantic sense: NOT node 1, NOT "about" path.
@klonos I love these suggestions, but each one should have its own issue (linked from this meta) so that they can be tackled one-by-one.
Thanks @jenlampton ...yes, it makes sense. I'll get to it soon as I can ππΌ
Create a layout with its path set to
node/%
and open the "add visibility" dialog. Here's the list of options that you get for conditions:Let's examine them one by one...
Front page
No specific comments for improvement here. We are not asking the user to type some weird
<front>
"special" path π and we are covering the reverse case of NOT the front page π. All good here.Node: NID
Basically something like this:
Node: Type
This is mostly OK. Just again replace the word "node" with "content" and do not have the word "type" capitalized. Perhaps add some help text (although things are obvious). Something like this instead:
NEW ISSUE = https://github.com/backdrop/backdrop-issues/issues/6436
Site language
My only minor objection here is with the help text that is using dev language ("pass" as in "pass the conditional check"). Perhaps more simple-user lingo, like "This layout will be used only for the selected languages.". If we want to be technically precise, then "This layout will be used only if the language of the page being rendered is one of the selected languages."
URL path
Why do we use two different methods/UI patterns for reversing the conditions? In NID we have a "reverse" checkbox after the condition, here we have a set of radio buttons before the condition. Can we please choose one and stick with it?
User account: UID
Again, we should allow multiple UIDs to be entered to avoid repetitive work.
User: Permission
Would be great if we can make this work with multiple permissions. I'm thinking "+add another permission" button that inserts additional instances of the drop-down menu??
User: Role