Node Link Rendering

Hi guys,

I’m struggling with creating a Link in AFX with the nodelink of "'Neos.Neos/Inspector/Editors/LinkEditor'"

What is the right way to render a NodeLink in Neos 5?

My NodeLink: node://25388130-33b7-48df-b106-6ec3f6508203

I’ve tried several ways from old forum posts, but couldn’t find a solution.

Thanks in advance :slight_smile:

Hi Daniel,

for handling the value of the link editor we have the Neos.Neos:ConverUris processor.
You can apply it to your value or the wrapping element.

Similar to this:

title.@process.convertUris = Neos.Neos:ConvertUris

With this you can convert any uri from the link editor.
If you used the reference type and referenced a node you should use the Neos.Neos:NodeLink object in AFX.

Hi Sebastian, thanks for the quick response.

I still get the same error:

And here my code:

Neos.Neos:ConvertUris
not
Neos.Neos.ConvertUris :wink:

I’ve noticed that too :sweat_smile:
It’s working now, but not with the Neos.Neos:NodeLink object, only with a simple a-tag.

Using the link in a normal a tag is totally ok and intended use case for node://uris.

Neos.Neos:NodeLink expects a node. The property you are passing is a string that contains the node://uri or the node://uri converted to a normal uri by Neos.Neos:ConvertUris. That is why NodeLink complains.

If you need the actual node you should consider using a property of type reference which you can pass to Neos.Neos:NodeLink for linking. node:// is only for linking purposes.

In edge cases you can use the identifier behind node:// to find the actual node in the cr.

1 Like

Thanks for the explanation :slight_smile: