-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.1] Template Override switches #36366
Conversation
For some reason the switches were not displayed in the same way as other similar switches. This leads to confusion (reported elsewhere) and the need for creating additional css. This Pr resolves that. Made against 4.1 as there are language string removals and additions and I dont know what the policy is for that in j4. ### Before ### After
|
@Quy I cannot replicate your error report and there is nothing in this PR remotely related to the line mentioned |
Sorry false alarm. Applied to v4.0. OK in v4.1. |
@@ -42,6 +42,7 @@ | |||
label="COM_TEMPLATES_LAYOUTS_DIFFVIEW_CORE" | |||
layout="joomla.form.field.radio.switcher" | |||
default="0" | |||
filter="boolean" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a boolean ? Is this an appointment within Joomla ?
See https://www.php.net/manual/en/language.types.boolean.php
I have tested this item ✅ successfully on b17288b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36366. |
I want to test, but I can't find these switches. 😅 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36366. |
@sandewt They only display when you are working on a template override. So use the create override functionality and then select one of the newly created overrides and then you will see the switches in the top right |
@sandewt Please |
I am not in favour of this kind of switches. Switches should be for yes/no only (I know that we have several on other places, and i think it is always wrong). Why not use a label? like "Hide original file: yes/no?" |
so propose a change. this pr is consistent with current usage |
What is current usage? |
Verbs shoud be avoided in labels |
Probably there is a reason for this rule, and maybe I am wrong with my my personal opinion, that switches should be used only for yes/no and lists for text-alternatives. If you were German I could help very easily, we can make a noun from every verb :) "Versteckthaltung der Originaldatei" I will start a discussion for that, because I think it is important. But not directly related to this PR. |
I have tested this item ✅ successfully on 9b37b14 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36366. |
This solution is better than before. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36366. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36366. |
Thx |
thanks |
joomla/joomla-cms#30522 + joomla/joomla-cms#32223 + joomla/joomla-cms#31675 + joomla/joomla-cms#35378 + joomla/joomla-cms#35612 + joomla/joomla-cms#35715 + joomla/joomla-cms#35610 + joomla/joomla-cms#35607 + joomla/joomla-cms#35788 + joomla/joomla-cms#35647 + joomla/joomla-cms#35143 + joomla/joomla-cms#36135 + joomla/joomla-cms#35998 + joomla/joomla-cms#36173 + joomla/joomla-cms#36212 + joomla/joomla-cms#36208 + joomla/joomla-cms#36206 + joomla/joomla-cms#36205 + joomla/joomla-cms#36203 + joomla/joomla-cms#36192 + joomla/joomla-cms#36191 + joomla/joomla-cms#36228 + joomla/joomla-cms#36211 + joomla/joomla-cms#36271 + joomla/joomla-cms#36270 + joomla/joomla-cms#36245 + joomla/joomla-cms#36294 + joomla/joomla-cms#36244 + joomla/joomla-cms#36242 + joomla/joomla-cms#36296 + joomla/joomla-cms#36190 + joomla/joomla-cms#36474 + joomla/joomla-cms#36297 + joomla/joomla-cms#36480 + joomla/joomla-cms#36479 + joomla/joomla-cms#36551 + joomla/joomla-cms#36366 + joomla/joomla-cms#36589 + joomla/joomla-cms#36583 + joomla/joomla-cms#36328 + joomla/joomla-cms#36515 + joomla/joomla-cms#36555 + joomla/joomla-cms#36653 + joomla/joomla-cms#36660 + joomla/joomla-cms#36657 + joomla/joomla-cms#36637 + joomla/joomla-cms#35983 + joomla/joomla-cms#36704 + joomla/joomla-cms#36708 + joomla/joomla-cms#36700 +
For some reason the switches were not displayed in the same way as other similar switches. This leads to confusion (reported elsewhere) and the need for creating additional css.
This Pr resolves that. Made against 4.1 as there are language string removals and additions and I dont know what the policy is for that in j4.
Before
After
cc @Scrabble96