ARCHIVED
!注意“归档”
This chapter has not been updated for the current version of Orchard, and has been ARCHIVED.
Orchard should send linkbacks when contents gets created, and should receive refbacks, trackbacks and pingbacks. It should put all three through spam filters and should provide admin UI to manage the linkbacks and configure their moderation (moderation required or not, etc.).
Orchard应该在创建内容时发送链接,并且应该接收refbacks,trackbacks和pingbacks。它应该通过垃圾邮件过滤器放置所有三个,并应提供管理UI来管理链接并配置他们的审核(需要或不需要审核等)。
Sending linkbacks
发送链接
The Linkback module, when activated for a given content type, should act as a filter on save actions. It should be looking for A tags in the body of the content item and extract the href attribute for each. It should then schedule trackback and pingback pings for each extracted URL.
对于给定内容类型激活时,Linkback模块应充当保存操作的过滤器。它应该在内容项的正文中查找A标记并为每个标记提取href属性。然后,它应该为每个提取的URL安排trackback和pingback ping。
Issue: should only body be scanned for URLs or should we rely on a more generic definition of content text?
问题:应该只扫描正文的URL,还是应该依赖更通用的内容文本定义?
Note: linking back to local contents can be considered like a regular linkback, but some site authors like to only show external ones. For this reason, there should be a setting to only send trackback notifications to external URLs.
注意:链接回本地内容可以被视为常规链接,但一些网站作者喜欢只显示外部链接。因此,应该有一个设置只向外部URL发送引用通知。
Sending refback
发送回复
For refbacks, there isn't anything to do from the sender's end. The first visitor to click the link will implicitly notify the target site.
对于回复,发件人的结尾没有任何事情要做。单击该链接的第一个访问者将隐式通知目标站点。
Sending trackback
发送引用
On the scheduled job, the linkback module should do a GET on the linked URL and then scan the results for embedded RDF for the ping URL. If such a ping URL is found, the module should send the trackback ping, according to the trackback specification.
在计划作业上,链接回送模块应对链接的URL执行GET,然后扫描ping URL的嵌入式RDF的结果。如果找到这样的ping URL,则模块应根据[引用规范](http://www.sixapart.com/pronet/docs/trackback_spec)发送引用ping。
Sending pingback
发送pingback
The GET request that is being made to search for trackback RDF can be re-used to look for pingback HTTP headers or link tags, according to the pingback specification. If such a pingback URL is discovered, it should be pinged according to spec.
根据[pingback规范](http://www.hixie.ch/specs/pingback/pingback),可以重新使用正在搜索trackback RDF的GET请求来查找pingback HTTP头或链接标记。 )。如果发现了这样的pingback URL,则应根据规范对其进行ping操作。
When both trackback and pingback are supported
同时支持trackback和pingback
When both pingback and trackback are discovered to be supported, we should only send the pingback notification.
当发现支持pingback和trackback时,我们应该只发送pingback通知。
Embedding trackback and pingback auto-discovery
嵌入trackback和pingback自动发现
In order to comply with trackback and pingback specifications, we must include auto-discovery information in any document that must be able to be linked back to. For pingback, there is a choice of using an HTTP header or a link tag. We will use link tags because they are more explicit and easier to fit in our overall UI composition engine.
为了遵守引用和pingback规范,我们必须在必须能够链接回的任何文档中包含自动发现信息。对于pingback,可以选择使用HTTP标头或链接标签。我们将使用链接标记,因为它们更明确,更容易适合我们的整体UI组合引擎。
The linkback module, when activated on the main content item being displayed, will inject the auto-discovery markup for both trackback and pingback into the page, using the same composition engine that is being used for the rest of the page. That markup will point the linkback clients to trackback and pingback actions on the linkback controller.
当在显示的主内容项上激活时,链接返回模块将使用与页面其余部分相同的组合引擎,将引用和pingback的自动发现标记注入到页面中。该标记将指向链接返回客户端在链接控制器上的引导和pingback操作。
Receiving linkback pings
接收链接ping
The linkback controller will receive all notifications for pingback and trackback.
链接控制器将接收pingback和trackback的所有通知。
For refback, the linkback module will have to act as a filter in order to handle all incoming GET actions that have a referrer that is different from the current URL.
对于refback,linkback模块必须充当过滤器,以便处理具有与当前URL不同的referrer的所有传入GET操作。
In all three cases, the linkback module will verify that the targeted content item has linkback enabled (it has a linkback part), and it will then add a record to the list of linkback URLs on the linkback part for that item, if that URL is not already in the list.
在所有三种情况下,链接模块将验证目标内容项是否已启用链接(它具有链接部分),然后它将向该项的链接部分上的链接返回URL列表添加记录(如果该URL)尚未列入清单。
The items in the list of linkback URLs have a URL, a title (the extracted title of the linking page), a summary (the summary meta of the linking page if available, null otherwise) and a date (the date the linkback was received).
链接URL列表中的项目具有URL,标题(链接页面的提取标题),摘要(链接页面的摘要元(如果可用),否则为null)和日期(收到链接的日期) )。
Moderation and spam filtering
审核和垃圾邮件过滤
Each linkback to a content item should be moderated and filtered for spam like comments are. See comment specification.
应该对内容项的每个链接进行审核并过滤垃圾邮件,例如评论。见[评论规范](评论)。
Settings
设置
It should be possible eventually to configure what content items accept linkbacks. That will be part of the general configuration of parts on content types. That work has not been done yet.
最终应该可以配置哪些内容项接受链接。这将是内容类型部分的一般配置的一部分。这项工作尚未完成。
It should be possible to enable or disable each of the three linkback protocols, on the ways in or out.
应该可以在进出方式上启用或禁用三种链接回复协议中的每一种。
There should be a setting to enable or disable local/internal linkbacks.
应该有一个设置来启用或禁用本地/内部链接。
Permissions
权限
In this context, the owner is the owner of the content item being linked back to (the container of the linkbacks).
在此上下文中,所有者是链接回(链接的容器)的内容项的所有者。
Permission | Anon. | Authentic. | Owner | Admin. | Author | Editor
许可|匿名。 |真实。 |所有者|管理员。 |作者|编辑
------------------------------------------------ | ----- | ---------- | ----- | ------ | ------ | ------
- | ----- | ---------- | ----- | ------ | ------ | ------
Moderate linkbacks (implies all others) | No | No | Yes | Yes | Yes | Yes
适度链接(暗示所有其他链接)|没有|没有|是的|是的|是的|是
Disable linkbacks | No | No | Yes | Yes | Yes | Yes
禁用链接|没有|没有|是的|是的|是的|是