Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Add option to select pages #348

Closed
wants to merge 1 commit into from
Closed

Conversation

mikemcalister
Copy link
Contributor

Add option to select pages in the post/page grid.

How to test

  1. Run npm install to grab the react-select package and dependencies.
  2. Compile the blocks.
  3. Add the Post/Page Grid block and select the Page post type.
  4. Select pages using the select menu and test.

Suggested changelog entry

  • Add the option to select specific pages in the page grid.

Notes

  • This draft PR just covers the editor view.
  • When script debug is on, react-select throws a few strict warnings. Discussion about them are happening here and here. I've confirmed the latter PR fixes one of the warnings.

Improve the query

Bring in posts

Get page list

Improve query

Check for pages first

Remote test include
@mikemcalister mikemcalister deleted the add/pageSelection branch April 6, 2020 20:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant