PHPackages                             cyber-duck/silverstripe-linkitemfield - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cyber-duck/silverstripe-linkitemfield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

cyber-duck/silverstripe-linkitemfield
=====================================

SilverStripe 4 custom form element for anchor, email, telephone, file, image, internal and external links

5.1(2y ago)441.0k↓50%12[1 PRs](https://github.com/Cyber-Duck/Silverstripe-LinkItemField/pulls)MITPHP

Since Nov 10Pushed 1y ago4 watchersCompare

[ Source](https://github.com/Cyber-Duck/Silverstripe-LinkItemField)[ Packagist](https://packagist.org/packages/cyber-duck/silverstripe-linkitemfield)[ Docs](http://github.com/cyber-duck/silverstripe-linkitemfield)[ RSS](/packages/cyber-duck-silverstripe-linkitemfield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (15)Used By (0)

SilverStripe 4 Link Item Field
==============================

[](#silverstripe-4-link-item-field)

[![Latest Stable Version](https://camo.githubusercontent.com/ee8f65b25a53b7311069bfe4c4594ce60064d7aea1bcb2debcb00f76a3ccd3cf/68747470733a2f2f706f7365722e707567782e6f72672f63796265722d6475636b2f73696c7665727374726970652d6c696e6b6974656d6669656c642f762f737461626c65)](https://packagist.org/packages/cyber-duck/silverstripe-linkitemfield)[![Latest Unstable Version](https://camo.githubusercontent.com/01be4ec957bf4cd8a1ddef7f4eb87a76a050157496d55339e6ce23cc11164d74/68747470733a2f2f706f7365722e707567782e6f72672f63796265722d6475636b2f73696c7665727374726970652d6c696e6b6974656d6669656c642f762f756e737461626c65)](https://packagist.org/packages/cyber-duck/linkitemfield)[![Total Downloads](https://camo.githubusercontent.com/112fae77644572b9b2218c5d925f54cb1d2fbb5b469a4f8f2cbeab2890a5bdb2/68747470733a2f2f706f7365722e707567782e6f72672f63796265722d6475636b2f73696c7665727374726970652d6c696e6b6974656d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/cyber-duck/silverstripe-linkitemfield)[![License](https://camo.githubusercontent.com/67f979db9dcfc6b2b50c5119b0b265fb543cc62970a68133ede656d4eda86472/68747470733a2f2f706f7365722e707567782e6f72672f63796265722d6475636b2f73696c7665727374726970652d6c696e6b6974656d6669656c642f6c6963656e7365)](https://packagist.org/packages/cyber-duck/silverstripe-linkitemfield)

Author: [Andrew Mc Cormack](https://github.com/Andrew-Mc-Cormack)

Features
--------

[](#features)

Provides a has\_one Link object with the following options:

- Anchor link
- Internal Link
- External Link
- Email
- Telephone
- File
- Image
- Link target (\_blank etc)

Screen Shots
------------

[](#screen-shots)

- [Link Item Field Modal Open](/docs/images/modal-open.jpg)

Installation
------------

[](#installation)

Add the following to your composer.json file and run /dev/buid?flush=all

```
{
    "require": {
        "cyber-duck/silverstripe-linkitemfield": "4.1.*"
    }
}
```

Setup
-----

[](#setup)

The field references a has\_one LinkItem relation on a DataObject. Make sure to include both the field and object namespaces in your class.

```
use CyberDuck\LinkItemField\Forms\LinkItemField;
use CyberDuck\LinkItemField\Model\LinkItem;
use SilverStripe\ORM\DataObject;

class MyObject extends DataObject
{
    private static has_one = [
        'MyRelation' => LinkItem::class
    ];
}
```

The field can easily be added to an DataObject / extension through getCMSFields() / updateCMSFields() or similar.

```
$fields->addFieldToTab('Root.Main', LinkItemField::create('MyRelationID', 'My Relation Title'));
```

The relation will expose 3 properties in your template - Link, Title, and Target.

```

$Title

```

When calling Link the outputted URL will be formatted depending on the Link type

```
For Anchor
For Internal
For External
For Email
For Telephone
For File
For Image
```

Todo
----

[](#todo)

- Add React

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Every ~244 days

Recently: every ~231 days

Total

10

Last Release

904d ago

Major Versions

4.2.0 → 5.02023-06-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c45a99726cc30692bc4821cfc198df1f5de85b1a15f9b66a0bf739acbac0309?d=identicon)[cyber-duck](/maintainers/cyber-duck)

---

Top Contributors

[![ramono](https://avatars.githubusercontent.com/u/1303840?v=4)](https://github.com/ramono "ramono (4 commits)")[![ChrissiQ](https://avatars.githubusercontent.com/u/1127719?v=4)](https://github.com/ChrissiQ "ChrissiQ (2 commits)")[![jelicanin](https://avatars.githubusercontent.com/u/692844?v=4)](https://github.com/jelicanin "jelicanin (2 commits)")[![samthejarvis](https://avatars.githubusercontent.com/u/1410549?v=4)](https://github.com/samthejarvis "samthejarvis (2 commits)")[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (1 commits)")[![worzy](https://avatars.githubusercontent.com/u/1092417?v=4)](https://github.com/worzy "worzy (1 commits)")[![carl-evanshunt](https://avatars.githubusercontent.com/u/79468955?v=4)](https://github.com/carl-evanshunt "carl-evanshunt (1 commits)")

---

Tags

linkinglinkssilverstripesilverstripe-4silverstripehas\_onehas-manysilverstripe 4linkingcustom link field

### Embed Badge

![Health badge](/badges/cyber-duck-silverstripe-linkitemfield/health.svg)

```
[![Health](https://phpackages.com/badges/cyber-duck-silverstripe-linkitemfield/health.svg)](https://phpackages.com/packages/cyber-duck-silverstripe-linkitemfield)
```

###  Alternatives

[cyber-duck/silverstripe-seo

A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content

4351.1k](/packages/cyber-duck-silverstripe-seo)[silverstripe/redirectedurls

Provides a system for users to configure arbitrary redirections in the CMS

32522.2k10](/packages/silverstripe-redirectedurls)[sheadawson/silverstripe-linkable

A couple of handy form fields and objects for managing external and internal links on DataObjects

39316.2k24](/packages/sheadawson-silverstripe-linkable)[briceburg/silverstripe-pickerfield

GridField based management of has\_one , has\_many , and many\_many relationship selection

2541.2k1](/packages/briceburg-silverstripe-pickerfield)[cyber-duck/silverstripe-google-tag-manager

Add Tag Manager data layer, events, and ecommerce support for SilverStripe

1528.0k](/packages/cyber-duck-silverstripe-google-tag-manager)[dnadesign/silverstripe-elemental-decisiontree

Element displaying information in regards to answers given to questions

1116.2k1](/packages/dnadesign-silverstripe-elemental-decisiontree)

PHPackages © 2026

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