Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow third party to feature its own blocks in the link control panel #39814

Open
Hug0-Drelon opened this issue Mar 28, 2022 · 1 comment · May be fixed by #39816
Open

Allow third party to feature its own blocks in the link control panel #39814

Hug0-Drelon opened this issue Mar 28, 2022 · 1 comment · May be fixed by #39816
Assignees
Labels
Needs Design Feedback Needs general design feedback. Needs Design Needs design efforts. [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@Hug0-Drelon
Copy link
Contributor

Hug0-Drelon commented Mar 28, 2022

What problem does this address?

For the moment, the list of available blocks in the transform section of the link control panel is hardcoded here. It's not possible for a third party plugin to feature a custom block for navigation.

There is still a workaround by adding a random link and transforming it into another kind of block. But from a user point of view it is not convenient at all.

Some context and practical example

Let's take a concrete case with Polylang Pro which provides a language switcher for the navigation block. Unfortunately users can't add it without performing a transform operation on a link block
See bellow what's currently displayed in the transform control panel:
Capture d’écran 2022-03-28 à 15 52 44
There is no way to easily transform a link into a block other than core/site-logo, core/social-links or core/search.

Instead it would be great to feature our language switcher block like this:
Capture d’écran 2022-03-28 à 15 51 28
Users will now be able to easily add our block.

Proposed solution

It would be great to open this block list, with a new filter for instance. With such a filter we could easily add blocks.

Maybe linked to this issue #33278

@Hug0-Drelon Hug0-Drelon linked a pull request Mar 28, 2022 that will close this issue
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 28, 2022
@draganescu
Copy link
Contributor

Wouldn't it be better if the language switcher could be directly (somehow) inserted in the menu, instead of inserting a link first and transforming later?

@draganescu draganescu added Needs Design Feedback Needs general design feedback. Needs Design Needs design efforts. labels May 17, 2022
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback. Needs Design Needs design efforts. [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants