User tests: Successful: Unsuccessful:
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.
Create an articles category list menu item.
Display List Layouts
tab.
Look at the Vote and Ratings fields
EDIT: Switch the vote plugin ON and OFF
EDIT: See also #31381 (comment)
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_content |
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.
I have tested this item
Joomla! 4.0.0-beta6-dev Development [ Mañana ] 27-October-2020 19:54 GMT
See comment
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.
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 :(
Labels |
Added:
?
|
Category | Front End com_content | ⇒ | Administration com_content Front End |
Added a new field VotelistField.php
and used it for the vote/ratings fields for List Layout
Modifying test instructions
Please test again.
I have tested this item
All OK if the Vote plugin is enables. I now see that, with the plugin disabled, Use Global (0) or Use Global (1) is the state of the global show flag.
And I can confirm the latest pr does not show the fields if the plugin is disabled.
Use Global (0) or Use Global (1) is the state of the global show flag.
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.
Can you also please hide the Voting
switch under Articles tab in Global Configuration?
This does not look good with the disabled vote plugin.
See line 288, delete the following code !?
<field
name="spacer1"
type="spacer"
hr="true"
/>
See line 288, delete the following code !?
That is not the purpose of this PR.
As we have other instances of spacers in code, I suggest to change all these in another PR if desired.
Example:
Therefore, if this PR works as intended, please mark it such so that we can merge it.
That is not the purpose of this PR.
As we have other instances of spacers in code, I suggest to change all these in another PR if desired.
Rightly noted.
I have tested this item
Joomla! 4.0.0-beta6-dev Development [ Mañana ] 27-October-2020 19:54 GMT
Status | Pending | ⇒ | Ready to Commit |
RTC thanks for testing.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-11-14 14:17:17 |
Closed_By | ⇒ | richard67 | |
Labels |
Added:
?
|
Thanks!
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.