I have a question concerning the Neos.Neos/Inspector/Editors/LinkEditor. When using this I can see in the backend, that a different Icon is used depending on the link target. Neos is able to distinguish between internal links (page icon) and external links (external link icon).
I would like to automatically set a _target="blank" for external links in one NodeType. However I think Neos does not parse this information so I can use it. Is that correct? Is there a way to check for if a link is internal or external in Fusion or in the templates?
For making sure the attribute is added the Neos.Neos:ConvertUris has to work on the whole item and not only the url-attribute because otherwise it cannot modify other properties.
But this viewhelper is only for nodes and I get an error when entering an external link in the Neos backend: Paths must not contain two consecutive slashes.
So how can I set it up, so my output can work with internal and external links and add the target="_blank" automatically?
The nodeLink expects a node-object but the link you get should actually be a string that looks like “http://…”, “node://identofier” or “resource://_identifier”.
You can verify this if you comment the @process out. Then you should see “node://…” as href for internal links.
OK, so far when I comment out the @process, I see the internal links as “node://…” links. So the @process works and creates useful URIs. But in this template Neos could not possibly add the target="_blank" or am I mistaken?
I am currently on Neos 4.2.9. Strange, so this behaviour actually has never worked in any project for me. I never saw a target attribute being added like this.