Skip to content

superinteractive/statamic-super-link

Repository files navigation

Statamic 5.0+ Statamic 6.0+

superlink

Super Link

A fieldtype to create smarter links in Statamic 5 and 6.

Features

  • Link text customization: Seamlessly add link text directly within the link field.
  • Additional link types: Enhance your links with phone and email options, in addition to Statamic's default types.
  • Open in new tab: Choose whether to open links in a new tab for an improved user experience.
  • Seamless integration: Simply add the Super Link fieldtype to your blueprints like any other link field.

Compatibility

Addon Version Statamic Version Laravel PHP
^3.0.0 6.x 12.x 8.3+
^2.0.0 5.x 11.x 8.2+

Installation

Require it using Composer.

composer require superinteractive/statamic-super-link

Usage

Once installed, the Super Link fieldtype becomes available when you configure your blueprints.

To display the link in your Antlers template:

{{ super_link }}
  <a href="{{ url }}" target="{{ target }}">{{ text }}</a>
{{ /super_link }}

Or

<a href="{{ super_link.url }}" target="{{ super_link.target }}">{{ super_link.text }}</a>

Editor Options

  • Link Type:
    • URL: Enter or paste any valid URL.
    • First Child: Dynamically return the URL to first entry nested below in a Structure or Navigation.
    • Entry: Directly link to any entry in your Statamic site.
    • Email: Enter an email address to create a mailto: link.
    • Phone: Enter a phone number to create a tel: link.
  • Link Text: Customize the link's display text.
  • Open in New Tab: Toggle to specify whether the link should open in a new tab.

Support

For support, issues, or feature requests, visit the our GitHub issues page.

License

The MIT License (MIT). Please see License File for more information.

About

Extended Link Fieldtype for Statamic.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors