This module provides:
- a basic inline linking field,
- saving into the existing Link model provided by gorriecoe/silverstripe-link
- delete link handling
This module is under active development, pull requests are welcome.
Rather than taking our content editors to a new data entry screen for the purposes of adding a link to a record, the field allows a link to be added to the current record within the context of that record.
The link can be added using one of the provided fields:
- Enter an external URL
- Enter an e-mail address
- Select a page
- Select a file asset
- Enter a phone number
The object of this module is to:
- allow editing and creation of links within the context of the parent record
have no Javascript dependencies, beyond those provided by core framework fields(we tried)- act as a drop-in replacement for the LinkField provided by gorriecoe/silverstripe-linkfield (NB: for has-one relations only)
- automatically publish linked
File
and/orSiteTree
relations when the parent record is published, via the Silverstripe ownership API
This module supports inline editing in Elemental. The field will detect whether it has been loaded in an inline editable context and makes allowances for this.
Rather than create a React component for the field, we use the standard MutationObserver API to detect field changes in the administration area based on an HTML5 data attribute attached to the relevant fields.
A source file is provided in client/src/js/app.js for reference.
A future goal is to decouple the administration (entwine) event detection/handling and allow the field to be used outside the administration area.
- Fragment field for page linking
See composer.json
The only supported way of installing this module is via composer
composer require nswdpc/silverstripe-inline-linker
None, yet
You can find the extensions used in config.yml.
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.