Download the PHP package gearsdigital/kirby-better-link without Composer

On this page you can find all versions of the php package gearsdigital/kirby-better-link. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kirby-better-link

Enhanced Toolbar Link Dialog

Kirby Version E2E Downloads PHP 8.0

This plugin extends the default link dialog with search functionality, making it possible to create links to existing or external pages.

Configuration

These are all available configuration options and their default values.

Option Description Type Default
title Format the page title of the result list using Kirby Query Language. string {{ page.title }}
filter Filter the result list. Learn how to use filterBy. array null
sort Sort the result list. Learn how to use sortBy. array null
qualified Prefix every link with your current Site-Url. boolean false
translations Override plugin translations. array []
target-field By setting hidden, the field will be hidden. Setting disabled will disable the field but keep it visible. string
anchor-field By setting hidden, the field will be hidden. Setting disabled will disable the field but keep it visible. string

Usage

Installation

Composer (recommended)

Download

Download the latest version, copy all files to /site/plugins/enhanced-toolbar-link-dialog.

Git submodule

FAQ

Can I use this plugin with Kirby Blocks?

Starting from version 3.0.0, Blocks are supported, and it also works seamlessly with default textareas.

Can I link to different sites?

Yes, absolutely. Just write (or paste) the URL into the Link field.

Can I create anchor-only links?

If you want to jump to a specific part of the page you're currently editing, you can create anchor-only links by leaving the Link field empty and filling in the Anchor field.

Can I customize the result list page title?

Yes, you can use the title option to customize the title according to your needs using the Kirby Query Language.

Within a query, you have access to page, site, and kirby objects. For example, setting 'title' => '{{ page.title }} [{{ page.parent.title }}]' will display the title as 'Mountains [Photography]'.

Can I show only pages that match some specific criteria?

Certainly! By setting "filter"=> ['status', 'listed'], only listed pages will be displayed. You can study the Filtering compendium to learn more about filtering collections in Kirby.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Localization

This is the list of all available translation keys:

Key Value
gearsdigital.enhanced-toolbar-link-dialog.anchor.title Anchor
gearsdigital.enhanced-toolbar-link-dialog.field.autosuggest.placeholder Enter a URL or search termโ€ฆ

You can override translations by adding this to your site config.

Available languages

License

MIT


All versions of kirby-better-link with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gearsdigital/kirby-better-link contains the following files

Loading the files please wait ....