Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
Umami demo
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Sep 2018 at 12:54 UTC
Updated:
1 Apr 2019 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
penyaskitoEdited views for adding the negotiated content language filter.
Comment #3
markconroy commentedHi @penyaskito,
Thanks for working on this. I've given it a manual test and found a regression in the
admin/structure/views/view/promoted_items/edit/block_1view. At the moment, the main block (top left on the homepage) is supposed to be the latest article, and the two beside it are supposed to be recipes.Your patch seems to allow Articles and Recipes in the first/left block.
Comment #4
mpp commentedIndeed, the patch removes the filter for block_1:
Also, shouldn't we use interface language as opposed to content language?
Comment #5
penyaskitoDon't know how that happened, this one should be good.
Also updated some views I skipped.
@mpp: It needs to be content language, as what we are showing on those views is content. Usually content negotiated language and user interface negotiated language are the same, and will probably always be the same in Umami, but there are use cases where people want to show the UI in one language and the content in other.
Comment #7
penyaskitoQA testbot failure.
Comment #8
gábor hojtsyThe config changes now look fine. Tests are not possible to add without multilingual content first, so needs manual testing for now.
Comment #9
penyaskitoMaybe the lack of reviews is because of the missing tag.
Comment #10
shaalComment #11
shaalWe should be able to test this issue's view settings by applying the following patch first #3037111: Import multilingual content into Umami
It includes all the config needed for multilingual + importing sample Spanish content.
Comment #13
penyaskitoAny chance this can be RTBCed? I've been using this patch for 6 months for multilingual demos now.
Comment #14
mpp commentedComment #15
shaalAs part of the work being done on #3037111: Import multilingual content into Umami
I spoke with @smaz yesterday.
We are missing in this patch:
Searching content in Umami
/searchshould return results only in the current language.Comment #16
gábor hojtsyIs that even configurable? Hm.
Comment #17
markconroy commentedI think I'd like to see this at rtbc and a follow up created for the search issue (if it's possible to configure it).
Comment #18
shaalIt's true, search in core doesn't provide an option to search in the current language only.
RTBC - patch #5 is doing exactly what it suppose to do.
Homepage, Articles, and Recipes pages are showing results in the current language only which is great!
(tested with multilingual content provided by #3037111: Import multilingual content into Umami)
Comment #20
gábor hojtsySuperb, thanks all!