{% if info %}
  <p>{{ info }}</p>
{% endif %}

Comments

seppelM created an issue. See original summary.

seppelM’s picture

Issue summary: View changes
cilefen’s picture

Title: search result - info » Empty info parts (empty paragraphs) in search results
jhodgdon’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Please provide more information. Are you using a custom theme or a module that overrides the theming of this page? Because I don't know of anyone else having this problem, and the core Search module tests are working fine.

Information that would be useful:
- Which theme are you using and does it have any search templates or preprocess functions running?
- Do you have any modules running that have preprocessing for search results?
- What is in your nodes and what is in the markup for the search result output?

If you can provide this information we may be able to help you investigate the problem, but this is probably not a Drupal Core bug, but really a support request because it is probably due to a custom/contrib module/theme.

So probably you should try to get some support elsewhere... although you can create issues in Drupal Core and mark the category as "support request", we don't really handle support requests in the Drupal Core issue queue as a regular practice (that option is mostly there for filing support issues for contributed modules and themes).

There are several support options listed if you click on "Support" at the top of Drupal.org, which will take you to:
http://drupal.org/support

There you can find out about the Drupal IRC channels, and the Forums, which are our two main support mechanisms in the Drupal community. You might also try http://drupal.stackexchange.com/

I'll leave this open for a few days in case you can provide information that we can use to try to reproduce the problem using only Drupal Core, but if this information is not provided or it is a problem with a non-Core module/theme, then we'll close this issue.

Good luck with your issue!

seppelM’s picture

Category: Support request » Bug report
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

My bad! The info content problem: I forgot about the "Display author and date information" [display_submitted] option, which was disabled for all content types...

I haven't tested it in another D8 instance in this case, and had a typo in the preprocess hook while trying to debug.

-----
Please mark this issue as "closed (works as designed)", if filtering an empty info in search-result.html.twig (in core/modules/search, core/themes/classy) has to be done in custom themes/modules.

cilefen’s picture

Status: Active » Closed (works as designed)
Issue tags: -node search