Download the PHP package fromholdio/silverstripe-superlinker without Composer

On this page you can find all versions of the php package fromholdio/silverstripe-superlinker. 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 silverstripe-superlinker

SilverStripe SuperLinker

A powerful, extensible link management system for SilverStripe that provides a unified interface for creating and managing all types of links in your CMS.

Table of Contents

Overview

SuperLinker is a comprehensive link management system that replaces fragmented link handling with a single, extensible DataObject. It provides:

Why SuperLinker?

Before SuperLinker, managing links in SilverStripe meant:

With SuperLinker, you get:

Requirements

Core Dependencies

Installation

Run dev/build:

Core Concepts

Link Types

A link type defines a category of link (e.g., 'sitetree', 'external', 'email'). Each type:

Type Extensions

Link types are added via SuperLinkTypeExtension subclasses that:

Settings

Settings control optional features:

Settings can be enabled globally or per-type.

Link Health

SuperLinker tracks link health:

Template Rendering

Links render via templates with fallback chain:

Quick Start

1. Basic has_one Relation

2. Add CMS Fields

3. Use in Templates

Or with custom markup:

4. has_many Relations

Link Types

SiteTree Link

Links to pages within your SilverStripe site.

Features:

Configuration:

Usage:

External Link

Links to external URLs.

Features:

Configuration:

Email Link

Creates mailto: links with optional subject and body.

Features:

Configuration:

Phone Link

Creates tel: links for phone numbers.

Features:

Usage:

File Link

Links to files in the assets folder.

Features:

Configuration:

Usage:

System Link

Links to system routes (login, logout, etc.).

Features:

Configuration:

Usage:

Global Anchor Link

Links to globally-defined page anchors.

Features:

Configuration:

Usage:

Null Link

Text-only, no actual link.

Features:

Usage: Automatically renders as text without <a> tag.

Configuration

Enabling/Disabling Link Types

Type-Specific Settings

Global Settings

Custom Type Configuration

Usage

In PHP

Getting Link Data

Adding CSS Classes

Filtering Valid Links

In Templates

Basic Usage

With Attributes

Looping Links

With Linking Mode

Type-Specific Rendering

Custom Templates

Create type-specific templates:

templates/Fromholdio/SuperLinker/Model/SuperLink_external.ss:

templates/Fromholdio/SuperLinker/Model/SuperLink_file.ss:

templates/Fromholdio/SuperLinker/Model/SuperLink.ss (fallback):

Optional Features

Description Extension

Add description field to links.

Installation:

Configuration:

Usage:

Templates:

Auto-Generated Descriptions:

For SiteTree and File links, implement on target:

Icon Extension

Add icon upload to links.

Installation:

Configuration:

Usage:

Templates:

Image Extension

Add image upload to links.

Installation:

Configuration:

Usage:

Templates:

Auto-Generated Images:

For SiteTree links:

Apply helper extensions:

Dependencies

SuperLinker relies on several companion modules that provide specific functionality.

SystemLinks

Purpose: Define static system links (login, logout, etc.) for use in templates and CMS.

Installation: Included with SuperLinker

Configuration:

Special URLs:

Usage in Templates:

Usage in PHP:

Documentation: See vendor/fromholdio/silverstripe-systemlinks/README.md

GlobalAnchors

Purpose: Define static global HTML anchors for use across the site.

Installation: Included with SuperLinker

Configuration:

Usage in Templates:

Usage in PHP:

Documentation: See vendor/fromholdio/silverstripe-globalanchors/README.md

RelativeURLField

Purpose: Form field for entering URL slugs with collision detection.

Installation: Included with SuperLinker

Features:

Usage:

Documentation: See vendor/fromholdio/silverstripe-relativeurlfield/README.md

HasOneEdit

Purpose: Inline editing of has_one relations.

Installation: Included with SuperLinker

Usage:

Note: This module is aging and may be replaced in future versions.

Documentation: See vendor/fromholdio/silverstripe-hasoneedit/README.md

Other Dependencies

Implementation Modules

SuperLinker provides base functionality. These modules extend it for specific use cases.

superlinker-ctas

Purpose: Call-to-Action / Button DataObjects

Status: Superseded by SuperLinker v3+. For new projects, create custom subclasses as needed.

Installation:

What it provides:

Usage:

Documentation: See vendor/fromholdio/silverstripe-superlinker-ctas/README.md

superlinker-redirection

Purpose: Redirector pages using SuperLink targets

Installation:

What it provides:

Features:

Usage:

Documentation: See vendor/fromholdio/silverstripe-superlinker-redirection/README.md

superlinker-targets

Purpose: Basic link/target DataObjects

Installation:

What it provides:

Usage:

Documentation: See vendor/fromholdio/silverstripe-superlinker-targets/README.md

API Reference

SuperLink Core Methods

Link Information

URL Methods

Link Health

HTML Attributes

Settings

Template Helpers

CMS Fields

Type Extension Methods

SiteTreeLink

ExternalLink

EmailLink

PhoneLink

FileLink

SystemLink

GlobalAnchorLink

Optional Extension Methods

SuperLinkDescriptionExtension

SuperLinkIconExtension

SuperLinkImageExtension

Real-World Examples

Example 1: Navigation Menu with SuperLinks

Template:

Example 2: CTA Buttons with Images

Template:

Example 3: Footer Links with Icons

Template:

Example 4: Custom Link Type

Create a custom link type for YouTube videos:

Apply extension:

Example 5: Versioned SuperLinks

For versioned content:

Migration

From Linkable or Similar Modules

  1. Install SuperLinker:

  2. Update DataObject Relations:

  3. Update CMS Fields:

  4. Update Templates:

  5. Run dev/build:

  6. Migrate Data: Write a migration task to convert existing link data to SuperLink format.

License

BSD-3-Clause

Support

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

Credits

Developed by Luke Fromhold


All versions of silverstripe-superlinker with dependencies

PHP Build Version
Package Version
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 fromholdio/silverstripe-superlinker contains the following files

Loading the files please wait ...