PHPackages                             briceburg/silverstripe-flexilink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. briceburg/silverstripe-flexilink

ActiveSilverstripe-module[Image &amp; Media](/categories/media)

briceburg/silverstripe-flexilink
================================

Link to SiteTree Pages, External URLs, YouTube Videos, &amp;c. from a single, flexible SilverStripe field.

0.1.0(11y ago)52571[5 PRs](https://github.com/briceburg/silverstripe-flexilink/pulls)BSD-3-ClausePHP

Since Jan 28Pushed 10y agoCompare

[ Source](https://github.com/briceburg/silverstripe-flexilink)[ Packagist](https://packagist.org/packages/briceburg/silverstripe-flexilink)[ Docs](https://github.com/briceburg/silverstripe-flexilink)[ RSS](/packages/briceburg-silverstripe-flexilink/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

silverstripe-flexilink
======================

[](#silverstripe-flexilink)

Link to SiteTree Pages, External URLs, YouTube Videos, &amp;c. from a single, flexible SilverStripe field.

Requirements
------------

[](#requirements)

[SilverStripe](http://www.silverstripe.org/) 3+

Screenshots
-----------

[](#screenshots)

[![flexichoice field](docs/screenshots/silverstripe-flexilink.gif?raw=true)](docs/screenshots/silverstripe-flexilink.gif?raw=true)

See [silverstripe-flexichoice](https://github.com/briceburg/silverstripe-flexichoice/) for a similar text input field.

Usage
=====

[](#usage)

- Add `FlexiLink` field types to your `DataObject`(s)

```
class BlockContentHeading extends DataObject {
  private static $db = array(
    'Title'     => 'Varchar',
    'Content'   => 'Text',
    'Link'      => 'FlexiLink',   //  'FlexiChoice',
  );

```

Trigger the environment builder (/dev/build) after extending objects -- You will now see the `FlexiLinkField` appear in the CMS when editing your object.

- `FlexiLink` provides the following public template methods
    - **Type** : The type of link (e.g. 'ExternalURL','Page','YouTubeID')
    - **Value** : The raw value of the link
    - **URL** : The link transformed into a URL (E.g. Page-&gt;Link(), '', '//[www.youtube.com/embed/\[Value\]](http://www.youtube.com/embed/[Value])')

```

  $Title
  $Content

      WATCH MOVIE

      $LinkText

```

- You may define link selection types and their related fields in [YAML Configuration](http://doc.silverstripe.org/framework/en/topics/configuration). Here's an example **/mysite/config/\_config.yml**

```
---
Name: mysite
After:
  - 'framework/*'
  - 'cms/*'
---
# YAML configuration for SilverStripe
# See http://doc.silverstripe.org/framework/en/topics/configuration
# Caution: Indentation through two spaces, not tabs
SSViewer:
  theme: 'site'

FlexiLinkField:
  allowed_types:
    - Page
    - Google

  field_types:
    Google:
      field: TextField
      description: TestTest
```

This example adds a custom 'Google' field type, and limits the dropdown selection to 'Page' and 'Google' (hides the built-in YouTubeID and ExternalURL).

**Remember**, *?flush=all* after YML configuration changes to register them in the manifest.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4122d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d264d36db9f51187a6bd5f2a1551d9b84cd1cfcf9d3ad6c96315dd10fb4719a4?d=identicon)[briceburg](/maintainers/briceburg)

---

Top Contributors

[![briceburg](https://avatars.githubusercontent.com/u/490144?v=4)](https://github.com/briceburg "briceburg (7 commits)")

---

Tags

urllinkpagesilverstripevideoyoutubecmsfieldsitetreeselectionexternal

### Embed Badge

![Health badge](/badges/briceburg-silverstripe-flexilink/health.svg)

```
[![Health](https://phpackages.com/badges/briceburg-silverstripe-flexilink/health.svg)](https://phpackages.com/packages/briceburg-silverstripe-flexilink)
```

###  Alternatives

[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
