-
-
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
[codestyle] admin components xml files #15920
[codestyle] admin components xml files #15920
Conversation
> | ||
<option value="">JOPTION_SELECT_AUTHOR</option> | ||
</field> | ||
name="author_id" |
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.
indentation isn't right here
<option value="">JOPTION_SELECT_MAX_LEVELS</option> | ||
|
||
<field | ||
name="level" |
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.
same here
> | ||
<option value="">JOPTION_SELECT_AUTHOR</option> | ||
</field> | ||
name="author_id" |
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.
and here
<option value="">JOPTION_SELECT_MAX_LEVELS</option> | ||
</field> | ||
<field | ||
name="level" |
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.
and here
name="title" | ||
type="text" | ||
label="JGLOBAL_TITLE" | ||
description="COM_FINDER_FILTER_TITLE_DESCRIPTION" |
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.
and here
label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL" | ||
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="1" filter="integer" |
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.
filter on a new line
@wilsonge with the new switcher class and options switched round in the XML files, is this going to be a pita with conflicts when merging into J4? |
label="COM_CONFIG_FIELD_DEBUG_SYSTEM_LABEL" | ||
description="COM_CONFIG_FIELD_DEBUG_SYSTEM_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="0" | ||
filter="integer" | ||
> |
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.
indent
label="COM_CONFIG_FIELD_DEBUG_LANG_LABEL" | ||
description="COM_CONFIG_FIELD_DEBUG_LANG_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="0" | ||
filter="integer" | ||
> |
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.
indent
@@ -330,10 +330,10 @@ | |||
<field |
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.
fiedset to one line
label="COM_CONFIG_FIELD_FTP_ENABLE_LABEL" | ||
description="COM_CONFIG_FIELD_FTP_ENABLE_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="0" | ||
filter="integer" | ||
> |
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.
indent
Perhaps making the pr against the J4 branch then? |
That will be the exact same pita 😄 |
I can deal with the conflicts. Everyone can stop stressing - it's the result of having two versions being dev'd at the same time. |
I have tested this item ✅ successfully on 51cff1e @wilsonge - Fair enough. @Bakual - So you've said before. Submit a PR if you're not happy This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920. |
conflicts resolved |
<option value="1">JSHOW</option> | ||
<option value="0">JHIDE</option> | ||
</field> | ||
|
||
<field name="show_category_title" |
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.
Move name="show_category_title"
to next line.
default="1" | ||
> | ||
> | ||
<option value="1">JSHOW</option> | ||
<option value="0">JHIDE</option> | ||
</field> | ||
|
||
<field name="show_description" |
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.
Move to next line.
class="btn-group btn-group-yesno" | ||
default="1" | ||
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL" | ||
description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC"> | ||
> | ||
<option value="1">JSHOW</option> | ||
<option value="0">JHIDE</option> | ||
</field> | ||
|
||
<field name="show_description_image" |
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.
Move to next line.
@Quy don't know how I missed those. Thanks I will update the pr tonight |
default="none" | ||
label="JGLOBAL_CATEGORY_ORDER_LABEL" | ||
description="JGLOBAL_CATEGORY_ORDER_DESC"> | ||
description="JGLOBAL_CATEGORY_ORDER_DESC" | ||
type="list" |
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.
Move it under name
.
@Quy thanks for everything on this - seems I didnt do a good job |
I have tested this item ✅ successfully on 6cdfb9e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920. |
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.
hi @brianteeman !
just one or two errors detected and some minor improvements. all the rest seems fine.
ok when this corrected
<field name="order_date" type="list" | ||
default="published" | ||
description="JGLOBAL_ORDERING_DATE_DESC" | ||
description="JGLOBAL_ARTICLE_ORDER_DESC" |
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.
default="rdate" is missing
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.
sorry i dont understand
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.
thsi field is the name="orderby_sec"
field
before:
<field name="orderby_sec"
type="list"
default="rdate"
label="JGLOBAL_ARTICLE_ORDER_LABEL"
description="JGLOBAL_ARTICLE_ORDER_DESC">
after
<field
name="orderby_sec"
type="list"
label="JGLOBAL_ARTICLE_ORDER_LABEL"
description="JGLOBAL_ARTICLE_ORDER_DESC"
>
so default="rdate"
is missing
label="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_LABEL" | ||
description="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_DESC" | ||
default="" |
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.
not essencial but i think this can be removed.
there is no option with "" value and uses "useglobal", so the default is the global value.
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.
this is used in quite a lot of places. i would prefer to leave changing that to another smaller pr where it would be easier to test.
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.
ok
name="filter_id" | ||
type="text" | ||
label="JGLOBAL_FIELD_ID_LABEL" | ||
descriptio="JGLOBAL_FIELD_ID_DESC" |
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.
"descriptio" should "description" (note the last "n")
@@ -84,35 +96,47 @@ | |||
|
|||
<fieldset name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS" | |||
> |
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.
could you check this one too?
type="textarea" | ||
label="JFIELD_META_DESCRIPTION_LABEL" | ||
description="JFIELD_META_DESCRIPTION_DESC" | ||
rows="3" cols="40" |
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.
cols in new line
label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL" | ||
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="1" filter="integer" |
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.
filter in new line
label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL" | ||
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC" | ||
class="btn-group btn-group-yesno" | ||
default="1" filter="integer" |
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.
filter in new line
@andrepereiradasilva made some of your changes and commented on two other requests |
I have tested this item ✅ successfully on 6cdfb9e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920. |
I have tested this item ✅ successfully on 6cdfb9e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920. |
RTC please |
RTC after two successful tests. |
Thankyou very much! |
Thanks everyone |
Review all the xml files in the administrator/components folder and make sure they are formatted according to the coding standards
(I had a long train journey)