[4.0] Articles List Layout vote/ratings fields xml should not be switchers#31381
[4.0] Articles List Layout vote/ratings fields xml should not be switchers#31381richard67 merged 5 commits intojoomla:4.0-devfrom
Conversation
|
Did I do something wrong? My Show Votes in List and Show Ratings in List lists only have Use Global available. No Show or Hide! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
Maybe you have to clear all caches? |
|
Have you enabled the vote plugin? |
|
I have enabled the Vote plugin and I now see the drop-down lists. But, Use Global does not have (Show) or (Hide). It seems to me that these two fields should be absent if the plugin is not enabled. Also, it was not obvious to me what the difference was between Show Votes in List and Show Ratings in List. Would it helpful to have the label read Show Number of Votes in List - that does become more obvious when you see the list. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
I have tested this item ✅ successfully on 3502c81 See comment This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
I guess one has to save Articles Global Options at least once. |
|
If the plugin is disabled then ideally the option should not be displayed at all. Or at least it should be a readonly field with a value of hide. This complex configuration problem has been raised before :( |
#18354 ? |
|
@ceford The issue may be treated in another PR if someone works on it. |
|
Added a new field |
|
I have tested this item ✅ successfully on 3502c81 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
And I can confirm the latest pr does not show the fields if the plugin is disabled. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
This will not show anymore when plugin is disabled, whatever the settings in Global when it was enabled or not. |
|
Help screen updated - that will take time to filter through the translation system. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
@sandewt Please test. |
administrator/components/com_content/src/Field/VotelistField.php
Outdated
Show resolved
Hide resolved
|
Can you also please hide the |
vote plugin is disabled
Done in ab8b009 |
|
This does not look good with the disabled vote plugin. See line 288, delete the following code !? |
That is not the purpose of this PR. Example: Therefore, if this PR works as intended, please mark it such so that we can merge it. |
Rightly noted. |
|
I have tested this item ✅ successfully on ab8b009 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
RTC thanks for testing. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31381. |
|
Thanks! |







Summary of Changes
Vote and ratings fields are list and not switchers. Switchers there are not only displayed wrong but they do not allow to select Use Global settings.
EDIT: This PR also prevents the fields from being displayed when the vote plugin is disabled.
Testing Instructions
Create an articles category list menu item.
Display
List Layoutstab.Look at the Vote and Ratings fields
EDIT: Switch the vote plugin ON and OFF
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
EDIT: See also #31381 (comment)
Documentation Changes Required