? ? Pending

User tests: Successful: Unsuccessful:

avatar astridx
astridx
17 Feb 2020

Summary of Changes

I deleted the parameter options in from the XML files for menu items. If I am right, this parameter has no task at the moment.

I think that parameters, options and language strings should only be add if we use them and I think that unnecessary program code is not good for a software. In my opinion, it unsettles newbies if they want to learn using core extensions.

Testing Instructions

Code review

avatar astridx astridx - open - 17 Feb 2020
avatar astridx astridx - change - 17 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2020
Category Administration Language & Strings Front End com_config com_contact com_content com_newsfeeds com_tags com_users
avatar SharkyKZ
SharkyKZ - comment - 18 Feb 2020

These are used in component layout field.

avatar astridx
astridx - comment - 19 Feb 2020

@SharkyKZ Maybe I'm not looking right. But I can not find a place where these are used. Can you show me one example please?

avatar SharkyKZ
SharkyKZ - comment - 19 Feb 2020

$text = isset($menu['option']) ? Text::_($menu['option']) : (isset($menu['title']) ? Text::_($menu['title']) : $value);

avatar brianteeman
brianteeman - comment - 24 Feb 2020

But is it being used?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27971.

avatar brianteeman
brianteeman - comment - 24 Feb 2020

Finally worked it out - I think

image

image

avatar astridx
astridx - comment - 24 Feb 2020

@SharkyKZ Thank you showing the place.
@brianteeman Thank you for checking and thinking along with me.

I honestly admit that I found the use only through SharkyKZ. Before, I only looked in the component menu. After posting the use in the code, however, I still think this is unnecessary. With my changes, the title is used instead of the option. For me, the title is clearer than Default. And mostly options and title are the same anyway.

Screenshot from 2020 02 24 18 58 53
Screenshot from 2020 02 24 19 00 40

I would not change the layout file

$text = isset($menu['option']) ? Text::_($menu['option']) : (isset($menu['title']) ? Text::_($menu['title']) : $value);
because the option may be used by Third Party Extensions.

I leave the PR open for a few more days. If no one answers, I close it. Then I assume that I am the only one who likes the deletion.

avatar brianteeman
brianteeman - comment - 24 Feb 2020

have to agree that the title is more meaningful

avatar SharkyKZ
SharkyKZ - comment - 24 Feb 2020

The point here is to show the unique name of the layout, not the name of the view. It does not make sense to show "Single Contact" for default contact layout because every layout for the contact view fits the description.

avatar astridx astridx - change - 1 Mar 2020
Labels Added: ? ?
avatar astridx
astridx - comment - 1 Mar 2020

Now I have an explanation. Thank you @SharkyKZ

avatar astridx astridx - close - 1 Mar 2020
avatar astridx astridx - change - 1 Mar 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-03-01 22:36:02
Closed_By astridx

Add a Comment

Login with GitHub to post a comment