How is the Property Type LinkEditor working?


(Bernhard Witz) #1

Once again I’m struggling with the documentation. I guess these questions are simple and easy to anwer. However, I could not find a working solution.

Here a link to the documentation about the Property Type LinkEditor: http://neos.readthedocs.io/en/stable/References/PropertyEditorReference.html#property-type-string-linkeditor-link-editor-for-internal-external-and-asset-links

With this example I have a working searchbox in the backend which works great for finding internal sites. But I only get links of the kind href="node://672d7201-d4b5-4c53-98e4-4559ae87ef93" at the end. What am I doing wrong?

myLink:
  type: string
  ui:
    inspector:
      editor: 'Neos.Neos/Inspector/Editors/LinkEditor'

Are there options for the LinkEditor searchbox to allow only external links or internal links or anchor links inside of the page like href="#example"?


(Rene Rehme) #2

If you want to convert links you can do that in fusion:
myLink.@process.convertUris = Neos.Neos:ConvertUris

For anchers you can use this package from Dmitri: https://github.com/flownative/neos-anchorlinks