Closed (fixed)
Project:
Country
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2020 at 01:56 UTC
Updated:
23 Jun 2024 at 15:21 UTC
Jump to comment: Most recent
Comments
Comment #2
devad commentedComment #3
devad commentedComment #4
devad commentedI have hoped that #3081862: Render country name as token commit will make facet configuration flexible... but no luck.
I have tested further and Facets' "List item label" option does not have any effect on Country labels.
If this option is not selected country uppercase keys are displayed, and if it is selected the uppercase keys are displayed again.
So, I suppose that this issue might be some kind of a bug as well... not only the feature request.
Is there any workaround maybe how to force facet to display full Country names?
Comment #5
devad commentedComment #6
fmb commentedIn my opinion, the correct way would be to write a Facets plugin.
Comment #8
fmb commentedIn order to test this MR, check "Country name" in facets settings.
Comment #9
batigolixI tested this and it works nice.
What is missing is documentation that explains how to set it up (especially the "Country name" setting in the facet.)
But as this module does not have a README, we would need a separate issue for this.
So I mark this RTBC.
Comment #10
batigolixComment #11
dakala@batigolix Thanks for all your work on issues. Would you be able to help update the README please? Once that's done, we can merge and release a new version. Once again, thanks.
Comment #12
batigolixComment #13
batigolix@dakala: the fork needs to be updated so that it contains a readme so it becomes possible to update it. But I dont know how to update the fork.
As an alternative I can create a new ticket for updating the readme.
Comment #14
dakala@batigolix: No worries. I don't know how to update forks either. Let's go for the easiest option. I'll merge this now, since it's been tested and marked RTBC before. I'll leave the update to the README in your able hands.
Comment #16
devad commentedI tried a .dev committed Facets plugin and it works nicely. Thanks all. Great job!
Is it possible to create a similar Facets plugin for Flags module maybe... so that Country flag + Country name can be displayed inside the facets as well.
I have created a feature request here: #3386287: Facets integration for Country flag + Country name
Comment #18
batigolix@dakala:
I created an issue (with patch) for the improvement of the readme: #3390684: Improve README.md
Comment #19
introfini commentedTo assist others facing the same issue, ensure that the "Ignore Case" processor is not enabled on your index for the country field. The country codes are stored in uppercase, and the countryManager->getList() method returns keys in uppercase as well. Any conversion to lowercase will cause the functionality to break.