Skip to content

Page List: When converting to Navigation Links respect the selected parent page #46469

Closed

Description

@scruffian

What problem does this address?

If I have Page List block inside a navigation menu, when converting a Page List block to a list of static navigation items, we don't respect the filter for the parent page. So if I have a page list like this:
Screenshot 2022-12-12 at 17 18 29

When I convert it, using this button:

Screenshot 2022-12-12 at 17 18 34

Screenshot 2022-12-12 at 17 19 09

What is your proposed solution?

We should only convert the pages that are shown by the filter.

Activity

  1. changed the title [-]Page List: When converting to Navigation Links respect the se[/-] [+]Page List: When converting to Navigation Links respect the selected parent page[/+] on Dec 12, 2022
  2. getdave commented on Dec 13, 2022

    @getdave
    Contributor

    We'll need to pass the correct pages to the conversion function. I believe the conversion function actually re-fetches the page data rather than use the data from the block edit so we'll need to refactor that in both locations in code.

  3. self-assigned this
    on Jan 4, 2023
  4. removed their assignment
    on Jan 31, 2023
  5. self-assigned this
    on Feb 1, 2023
  6. scruffian commented on Feb 9, 2023

    @scruffian
    ContributorAuthor

    This was fixed by #47651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions