Gutenberg: Insert Link: consider adding the post type for pages and CPTs or the date for posts in suggested link search results

Created on 1 Feb 2019  路  4Comments  路  Source: WordPress/gutenberg

Requested in #9660.
Mentioned at https://github.com/WordPress/gutenberg/issues/6392#issuecomment-419289220.

Consider adding the post type (e.g. Page, CPT name, or the date for posts) on the right for suggested links similar to how the classic editor does:

screen shot 2017-07-29 at 17 39 06
Example screenshot from #2084 showing how post types are listed in link suggestions in the classic editor.

[Feature] UI Components [Package] Format library [Type] Enhancement

Most helpful comment

I would love this - even better if there's a way to build it into the REST API search endpoint as a "Secondary Search Context" label (or something like that) which could be filtered so post types could provide their own helpful string, similar to how the built-in "Post" post-type shows a date instead of the post type name.

All 4 comments

I would love this - even better if there's a way to build it into the REST API search endpoint as a "Secondary Search Context" label (or something like that) which could be filtered so post types could provide their own helpful string, similar to how the built-in "Post" post-type shows a date instead of the post type name.

+1 for me.. Sorry to open my own issue for it!

https://github.com/WordPress/gutenberg/issues/16534#issuecomment-510464477

There are some mockups that relate to this on #8573.

This has been implemented. For reference:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidsword picture davidsword  路  3Comments

aaronjorbin picture aaronjorbin  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments

cr101 picture cr101  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments