Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languages Better language variable names 🇩🇪 Dec 27, 2018
README.md
composer.json Update composer.json Mar 19, 2019
index.css Rewrite, multilanguage Dec 21, 2018
index.js Structure Field fix Mar 6, 2019
index.php toHref() field method Feb 18, 2019
index.scss Rewrite, multilanguage Dec 21, 2018

README.md

Link field for Kirby 3 (WIP)

This is a link field for Kirby 3. You can conveniently insert external, email or page links.

Preview

Preview

Blueprint

fields:
  button:
    label:  Button
    type:   link

You can optionally define the possible link types (url, page and email) and their order like that:

fields:
  button:
    label:  Button
    type:   link
    options:
      - page
      - url

Content file

An external URL:

Button: 

link: https://www.medienbaecker.com
type: url

A page link:

Button: 

link: products/lorem-ipsum
type: page

An email address:

Button: 

link: mail@medienbaecker.com
type: email

Template example

There's a convenient ->toHref() method you can use to automatically return the correct href:

<?= $page->button()->toHref() ?>

Email address: mailto:mail@medienbaecker.com Page link: https://www.example.com/products/lorem-ipsum

Installation

Put the link folder into your site/plugins folder.

You can’t perform that action at this time.