WordPress.org

Making WordPress.org

Opened 5 years ago

Closed 3 years ago

#515 closed defect (fixed)

Separate search results for handbooks and P2/blog

Reported by: siobhan Owned by: coffee2code
Milestone: Priority: normal
Component: Handbooks Keywords:
Cc:

Description

When I do a search on make/core, it displays pages from the handbook in the search results. So, for example, I [do a search for release leads](http://make.wordpress.org/core/?s=%22release+lead%22) and the results display a page that I wrote in the handbook.

https://i.cloudup.com/sSO1xnu5Vo.png

This feels out of place in these search results. The handbooks and the associated discussion blog should have separate searches.

Change History (7)

This ticket was mentioned in Slack in #meta by sam. View the logs.


3 years ago

#2 @samuelsidler
3 years ago

  • Summary changed from P2 Make blog search results displays handbook pages to Separate search results for handbooks and P2/blog

Agreed.

We should have two search boxes. I think we added handbook results because we only had one search box. Instead, let's have a search for the handbooks and a separate one for the the rest of the P2.

#3 @coffee2code
3 years ago

In 3234:

Handbook plugin: Add four template tags relating to handbook pages.

Specifically: wporg_get_handbook_post_types(), wporg_is_handbook(), wporg_is_handbook_post_type(), and wporg_get_current_handbook().

Props keesiemeijer.
See #515, #1671.
Fixes #1693.

#4 @coffee2code
3 years ago

In 3235:

Handbook plugin: Add template tag wporg_get_current_handbook_home_url() to get home URL for current handbook.

See #515, #1671.

#5 @coffee2code
3 years ago

In 3236:

Handbook plugin: Don't modify handbook archive query when handling search.

Allows for handbook-only searches.

See #515, #1671.

#6 @coffee2code
3 years ago

In 3237:

W.org P2 child theme: Add search.php template to handle loading handbook-specific template part (added as well) in search results.

See #515.

#7 @coffee2code
3 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 3238:

W.org P2 child theme: Add searchform.php template for context aware handbook/non-handbook search form submission URLs.

Fixes #515.

Note: See TracTickets for help on using tickets.