Download the PHP package paessler/anchorlink without Composer
On this page you can find all versions of the php package paessler/anchorlink. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paessler/anchorlink
More information about paessler/anchorlink
Files in paessler/anchorlink
Package anchorlink
Short Description Extends the Neos CKE5 link-editor custom anchor link option
License MIT
Informations about the package anchorlink
Paessler.AnchorLink
Extends the Neos CKE5 link-editor with server-side resolvable anchor links.

Installation
-
Install the package:
composer require paessler/anchorlink -
Enable additional linking options with such config:
-
For all content nodetypes that you would like to be able to link to, inherit from
Paessler.AnchorLink:AnchorMixin, e.g.: - Adjust the rendering for those nodes to insert anchors before them, e.g. there is included a Fusion processor to help with that:
Note: this will add an id attribute to the corresponding output. For this to work reliably the corresponding prototype should render
a single root element. Otherwise an additional wrapping div element will be rendered.
Also the rendered content must not already contain an id attribute because it would be merged with the one from the augmentor in that case.
Configuration
It's possible to configure the content node nodetype that is used for linking. Also it's possible to use a different property for the anchor value and the label via Settings.yaml.
These are the defaults:
It's possible to disable the searchbox or adjust its threshold via Settings.yaml, the default settings are:
Low-level Customization
Finally, it is possible to create a completely custom anchor nodes resolver.
Create a class implementing AnchorLinkResolverInterface that would take the current content node, link and a searchTerm and return an array of options for the link anchor selector and configure it in Objects.yaml like this:
Development
If you need to adjust anything in this package, just do so and then rebuild the code like this:
And then commit changed filed including Plugin.js
About
The package is based on the DIU.Neos.AnchorLink package. We thank the DIU team for all the efforts.