简体   繁体   English

在Neos beta 1.0.2中添加文本链接

[英]Add link to text in neos beta 1.0.2

I am new to Typo3 neos. 我是Typo3 neos的新手。 I am using neos with version 1.0.2 我正在使用1.0.2版的neos

When i try to add links to custom content types the link will not be proper and it appears some thing like below.For external urls it works fine. 当我尝试将链接添加到自定义内容类型时,该链接将不正确,并且会出现如下所示的内容。对于外部URL,它可以正常工作。 node://06fbba05-82f1-e0b4-0e5e-4549e7aa4d11 节点:// 06fbba05-82f1-e0b4-0e5e-4549e7aa4d11

How can i add target blank for external urls and mailto link for emails? 如何为外部URL添加目标空白,为电子邮件添加mailto链接?

Thank you in advance. 先感谢您。

you need to apply a converter to your text that changes the internal presentation of the link to the real link. 您需要对文本应用转换器,以将链接的内部表示形式更改为实际链接。 Examples are in: Packages/Application/TYPO3.Neos.NodeTypes/Resources/Private/TypoScript/Root.ts2 示例在:包/应用程序/TYPO3.Neos.NodeTypes/资源/私有/TypoScript/Root.ts2

Basically if your custom node type has a property "text", you do: 基本上,如果您的自定义节点类型具有属性“文本”,则可以执行以下操作:

text.@process.convertUris = TYPO3.Neos:ConvertUris

in your TypoScript prototype. 在您的TypoScript原型中。

I think mailto: should work by typing mailto:foo@bar.com into the link box. 我认为mailto:应该通过在链接框中键入mailto:foo@bar.com来工作。 Setting different targets is currently not supported out of the box, but could be done with a custom processor. 当前不支持立即设置其他目标,但是可以使用自定义处理器来完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM