Extend Kirby's default link dialog with search functionality, allowing you to easily create links to existing or external pages at your fingertips.
After waaaay too much time, it's finally here: The third version of "Enhanced Toolbar Link Dialog" 🥳
Create links to internal pages and external sites from almost everywhere. It comes with support for Kirby’s Visual Editor Blocks and improved configurability.
Don't worry, it works for non Blocks fields as well.
One of my goals for this release was to simplify the user interface and to optimize the overall user experience. I figured removing the tabbed interface and streamlining the page selection process might be a good start. Let me know what you think! 🤤
Just enter a search term (or a wildcard *
) and you will get a paginated result list of your pages. If you start your search with /
or http
it is assumed that you want to link elsewhere. No suggestions are provided in such cases.
It is possible to have anchor only links. If you want to jump to a specific part of the same page you're currently editing - just leave the link empty and fill only the anchor field. Otherwise the anchor will be appended to the URL.
I'ld like to emphasize these options, from which I think are the most useful for you:
title
option you can create a title that fits your need by using Kirby Query Language.sort
and filter
option to control which pages are shown.qualified
to true
will prefix every link with your current site url.You can learn more about all configuration options, if you have look into the Readme.
We all have not enough time to manually test all features and edge-case with different versions of Kirby. Thats why I wrote a couple of integration tests using Cypress. To ensure compatibility, all Tests are performed against 3.6.*
and 3.7.*
One thing that comes into my mind is to enhance the integration test coverage. It's never enough ^^
If you find any issues or have a feature request, please don't hesitate and let me know!
I simplified the process of selecting pages and optimised the configurability. It is now possible not only to customize the page title, but also to sort and filter the list of results.