User tests: Successful: Unsuccessful:
Pull Request for Issue #23582 .
Adds access filter when counting items.
Create two articles.
Assign them the same tag.
Set access of one article to Registered
.
Publish Tags - Popular
module.
In the module enable Display Number of Items
option.
View the module in frontend. Inspect the number of items next to the tag:
a) As guest.
b) As logged in user.
a) 1
b) 2
a) 2
b) 2
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
Labels |
Added:
?
|
@infograf768, no, mod_tags_similar doesn't have this issue.
I have tested this item
The Tags - Popular
module counts correctly the number of the articles the user can see in their user-level.
But, the Tags - Popular
module items are linked to list all items of articles, weblinks and contacts together after clicking in the tag. And the count number misses the number of weblinks and contacts.
I'm sorry, I'm hesitating to write tested successfully
.
That is expected behavior.
Do you mean that the module itself is stricken by a "multiple personality disorder"? If that is acceptable then the PR works as expected.
Tags component supports multiple content types. Tag view displays all content types by default, although filtering by type capability does exist. It's not implemented in the module though.
And the count number misses the number of weblinks and contacts.
Can you double check this? I can't reproduce the issue.
And the count number misses the number of weblinks and contacts.
Can you double check this? I can't reproduce the issue.
Negative. The number next to the tags includes the number of contacts and weblinks, but sometimes it differs: the list (after clicking on a tag) includes sometimes more items than the count displayed next to the tag. I think that the list includes items of the nested tags (sub-tags). The count include only items of that particular (parent) tag.
Note: it was a coincidence before in count of the articles (with nested tags, too) and total count related to that (parent) tag.
I think it is correct that the counts in the module are related to the parent tags only and they ignore the children tags. On the other hand, it is a very good idea to let the user know that there is more content available and show them the content somehow. It is unfortunate that the list of a content to a tag and its children tags is melted into a mixed list (titles are sorted alphabetically, aren't they?). I think that the generated list shouldn't be mixed.
sub-tag
" follows.I have tested this item
Works as expected. Counts items (Contacts, Content, Weblinks) to a tag. Ignores items to the children tags of the counted tag.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Status "Ready To Commit".
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-20 19:02:07 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
thx
@kofaysi please test (how to: https://docs.joomla.org/Testing_Joomla!_patches)