User tests: Successful: Unsuccessful:
Pull Request for Issue #8074 and a replacement for PR #9155.
Finally got some time to look at this again. Although it's relatively straightforward to limit the number of tags initially shown in the drop-down (which was a problem for sites with thousands of tags), the list needs to be updated as tags are selected.
The problem is that if you select one or more tags from the list, then deselect them again (without clicking Save), the drop-down list is dramatically shortened to just those tags that have been added or removed since the page was loaded. The only way to load and select further tags is to start entering characters so that the search function kicks in.
With this PR, whenever a tag is selected an Ajax call is made so that tags are continually added to the drop-down list to replenish it.
In the process of writing this code I also made the JHelperTags::searchTags method a little smarter so that a considerable amount of duplicated code has been removed from JFormFieldTag::getOptions.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | com_tags Front End Layout Libraries |
Labels |
Added:
?
|
@franz-wohlkoenig Thanks for testing. Was the dropdown empty before you applied the PR?
Can you look in developer tools and see if the Ajax is throwing any errors? What version of Joomla did you test with? What database are you using? Any errors logged?
Was the dropdown empty before you applied the PR?
Can you look in developer tools and see if the Ajax is throwing any errors?
What version of Joomla did you test with?
What database are you using?
Any errors logged?
I have tested this item
Hello,
I have tested this.
Before appliing the PR I had 9 tags and in the dropdown all were shown.
After appliing I could not enter the article list becuase of this error:
Fatal error: Class 'JFormAbstractlist' not found in /home/eabbcbdv/public_html/nl/joomla8/libraries/cms/form/field/tag.php on line 20
I am sorry
Hello,
It looks like my comment was not published.
Before adding the PR There were 9 tags in the component. By editting an article in the tags dropdown were all 9 in this list.
After adding the PR article manager could not be opened becaus of this error:
Fatal error: Class 'JFormAbstractlist' not found in /home/eabbcbdv/public_html/nl/mydomain/libraries/cms/form/field/tag.php on line 20
I am sorry
I am closing this as it has not been successfully tested and there has been no comment from the OP
It can always be re-opened if fixed
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-01-04 18:38:26 |
Closed_By | ⇒ | brianteeman |
I have tested this item? unsuccessfully on 5adfe42
Set maximum Items on 5, having 6 Tags. In "Article > Tags" Dropdown is empty.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13277.