- First commit to issue fork.
- ๐ฎ๐ณIndia mitthukumawat
I have added a new template suggestion for search 404 results. We can find a name suggestion as
item-list--search-results--search404.html.twig
. And the default template for the search results isitem-list--search-results.html.twig
. - Merge request !22Issue #3063198 by jerome legendre, deepa_lissa, sulfikar_s, DocRPP,... โ (Closed) created by mitthukumawat
- Merge request !23Adding new template suggestion for search results through search 404 โ (Merged) created by mitthukumawat
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7 & MySQL 5.5last update
over 1 year ago Waiting for branch to pass - ๐ฎ๐ณIndia mitthukumawat
The merge request !22 is for 8.x-1.x and merge request !23 for 2.x branch.
- Status changed to Needs work
over 1 year ago 6:48am 31 October 2023 - ๐ฉ๐ชGermany Anybody Porta Westfalica
@mitthukumawat thanks! Two things:
The MR!22 adds a lot of unrelated changes, I think that's unwanted.
I think the original hook suggestions from core:+ 'item_list__search_results__' . $plugin->getPluginId(), + 'item_list__search_results',
should be kept to use the core implementations by default.
Is there a reason for removing it? That may break sites.
- ๐ฎ๐ณIndia mitthukumawat
The MR!22 adds a lot of unrelated changes, I think that's unwanted.
It is for 8.x-1.x branch. It is showing unrelated changes because of this branch is behind many commits. We can either ignore this.
Is there a reason for removing it? That may break sites.
Yes, actually this hook suggestion is for only search 404.
'item_list__search_results__' . $plugin->getPluginId(), 'item_list__search_results',
These are default hook available for all core search results pages.
What do you think, should we keep the core hooks as default for search 404 as well, from where developers can customise accordingly? - ๐ฉ๐ชGermany Anybody Porta Westfalica
It is for 8.x-1.x branch. It is showing unrelated changes because of this branch is behind many commits. We can either ignore this.
Yes I know, but in that case you typically don't add unrelated changes, just the changes relevant to this issue.
Re your 2nd question: I think the patch in #2 does it right?
- ๐ฎ๐ณIndia mitthukumawat
No, after applying patch #2 โจ Bring no (empty) results text into alignment with D8 and/or make customizable Needs work , only one hook suggestion showing from core.
This is because it cannot suggest multiple hooks from one build.
Added screenshot of the results after adding below hook suggestion:'item_list__search_results__' . $plugin->getPluginId(), 'item_list__search_results', 'item_list__search_results__search404', 'item_list__search_results__search404__' . $plugin->getPluginId(),
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Sorry @mitthukumawat - I thought the patch was in hook_theme_suggestions()! Didn't see it was written into the render array, which is of course wrong. I never saw that kind of implementation before.
So I got this issue entirely wrong, please ignore my comments before.
- Status changed to Needs review
over 1 year ago 10:36am 6 February 2024 - First commit to issue fork.
-
jijojoseph_zyxware โ
committed e3459ac6 on 2.x authored by
mitthukumawat โ
Issue #2730589 by mlncn: Bring no (empty) results text into alignment...
-
jijojoseph_zyxware โ
committed e3459ac6 on 2.x authored by
mitthukumawat โ
- Status changed to Fixed
over 1 year ago 10:32am 13 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.