Download the PHP package flxlabs/silverstripe-dataobject-links without Composer
On this page you can find all versions of the php package flxlabs/silverstripe-dataobject-links. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flxlabs/silverstripe-dataobject-links
More information about flxlabs/silverstripe-dataobject-links
Files in flxlabs/silverstripe-dataobject-links
Package silverstripe-dataobject-links
Short Description Adds links to data objects in TinyMCE editor
License BSD-3-Clause
Informations about the package silverstripe-dataobject-links
DataObject Links
Add links to DataObjects from within the TinyMCE editor
Introduction
Using this module you can link to DataObjects from within TinyMCE.
Setup
You can either add this module to your composer file using
or download the git repository and add a folder called dataobject-links
to the top level
of your project and drop the code in there.
Configure
In your settings .yml
file put a section with
Where classes
is a map from ClassName to display name that is used when selecting the DataObject.
Make sure to run /dev/build?flush
to load in your config changes.
Usage
In TinyMCE's Insert link
menu there will be a new entry Link to an Object
at the very top. Use that to link to an Object of one of the classes that is listed in your config.
When generating the link this module will call the Link
method on a DataObject. Override it to provide a link to your DataObject.
All versions of silverstripe-dataobject-links with dependencies
silverstripe/admin Version ^2
silverstripe/vendor-plugin Version ^2.0