PHPackages                             sam-costigan/linkableobjects - 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. sam-costigan/linkableobjects

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

sam-costigan/linkableobjects
============================

Module for SilverStripe allowing Data Objects to be hooked into WYSIWYG link editor.

291[4 PRs](https://github.com/Sam-Costigan/linkableobjects/pulls)PHP

Since Aug 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Sam-Costigan/linkableobjects)[ Packagist](https://packagist.org/packages/sam-costigan/linkableobjects)[ RSS](/packages/sam-costigan-linkableobjects/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LINKABLE OBJECTS
================

[](#linkable-objects)

Maintainer Contact
------------------

[](#maintainer-contact)

- Sam Costigan &lt;sam (at) stripetheweb (dot) com&gt;

Description
-----------

[](#description)

Add your custom Data Objects to the HTML Editor Field link functionality, with a Dropdown field that is populated by relevant results as the user searches.

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

[](#requirements)

- SilverStripe 3.0 or newer

Setup
-----

[](#setup)

To set up a DataObject to be linkable, first it needs to implement the Linkable interface. There are two requirements for a Linkable DataObject:

- a Link() function which will return a relevant URL to display the Data Object.
- a LinkTitle() function which will return a title string to display when searching for Data Objects.

The Link() function will need to return a relevant URL so that the Data Object will be displayed. For more information on how to do this, see

When searching for DataObjects, the $searchable\_fields array will be used to decide which fields are searched.

### Example setup

[](#example-setup)

```
class Test extends DataObject implements Linkable {

	private static $db = array(
		'Name' => 'Text',
		'Author' => 'Varchar(150)'
	);

	public static $searchable_fields = array(
		'Name',
		'Author'
	);

	public function Link() {
		return $this->ID;
	}

	public function LinkTitle() {
		return $this->Name . ' - ' . $this->Author;
	}
}

```

Once the DataObject has been set up to properly implement the Linkable interface, you need to add the following line to your mysite/\_config.php file:

HtmlEditorField\_LinkObjects::addLinkableObject('Test');

Your DataObject will then be added to the HTML Editor Field links section.

Feedback
--------

[](#feedback)

Feel free to make this module better by submitting feedback, changes, suggestions etc!

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06aa68153ec88a2559a45cc265c28b1e83af2da1a12ea927af3f4ceb67d161ec?d=identicon)[Sam-Costigan](/maintainers/Sam-Costigan)

---

Top Contributors

[![Sam-Costigan](https://avatars.githubusercontent.com/u/2160222?v=4)](https://github.com/Sam-Costigan "Sam-Costigan (3 commits)")

### Embed Badge

![Health badge](/badges/sam-costigan-linkableobjects/health.svg)

```
[![Health](https://phpackages.com/badges/sam-costigan-linkableobjects/health.svg)](https://phpackages.com/packages/sam-costigan-linkableobjects)
```

PHPackages © 2026

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