Skip to content

ARCHIVED

!注意“归档”

This chapter has not been updated for the current version of Orchard, and has been ARCHIVED.

The system can also be queried to provide all tags currently in use or to provide all content items that have been tagged with a given tag.

还可以查询系统以提供当前正在使用的所有标签,或者提供已经用给定标签标记的所有内容项。

Because any content could be tagged, this will be implemented as a content part.

因为可以标记任何内容,所以这将被实现为内容部分。

Applicability of the taggable content part

可标记内容部分的适用性

The default setting for tags should be that they are available on any content type.

标签的默认设置应该是它们可用于任何内容类型。

Scenarios

方案

A content author can apply tags to any content item he creates

内容作者可以将标签应用于他创建的任何内容项

Except is the site administrator disabled the taggable aspect from the content type being edited, content items can be tagged through UI that is dynamically added to the admin UI for the current item.

除了站点管理员从正在编辑的内容类型禁用可标记方面之外,可以通过UI动态添加内容项,该UI动态添加到当前项的管理UI。

  1. The author goes to the admin page for his content item.

1.作者转到他的内容项的管理页面。

  1. A tags section appears on the bottom of the admin page where the list of existing tags is presented as a checkbox list. There is also a textbox and an "add" button to add a new tag.

2.标签部分显示在管理页面的底部,其中现有标签列表显示为复选框列表。还有一个文本框和一个“添加”按钮,用于添加新标签。

  1. The author checks "Apples", "Pears" and types Orange into the text box, then clicks "add".

3.作者检查“苹果”,“梨”并在文本框中键入橙色,然后单击“添加”。

  1. The author publishes the new version.

4.作者发布了新版本。

A user of the site can navigate contents by tags

站点的用户可以按标签导航内容

  1. A user navigates to the site and sees a tag cloud in one of the columns.

1.用户导航到站点并在其中一列中看到标签云。

For the moment, and until we have widgets, we will hard-code the tag cloud into the page templates.

目前,在我们拥有小部件之前,我们会将标签云硬编码到页面模板中。

  1. The user sees a topic he's interested in: "Pears" and clicks the tag.

2.用户看到他感兴趣的主题:“Pears”并单击标签。

  1. The user is then taken to a page that has a list of content items that have been tagged with "Pears". Note: this requires the list feature to be implemented.

3.然后,用户被带到具有已标记为“梨”的内容项列表的页面。 注意:这需要实现列表功能。

  1. (optional) The user can refine the search by clicking on "Orange" on the "sub" tag cloud that appeared on top of the search results.

4.(可选)用户可以通过单击搜索结果顶部显示的“sub”标签云上的“Orange”来优化搜索。

  1. The user clicks on the title of one of the items and can then read the full page.

5.用户单击其中一个项目的标题,然后可以阅读整页。

Permissions

权限

The owner here is the owner of the content item being tagged for the tag content permission, and the site owner for the tag management right.

此处所有者是标记了标记内容权限的内容项的所有者,以及标记管理权限的网站所有者。

Permission | Anon. | Authentic. | Owner | Admin. | Author | Editor

许可|匿名。 |真实。 |所有者|管理员。 |作者|编辑

------------------------------------------ | ----- | ---------- | ----- | ------ | ------ | ------

  • | ----- | ---------- | ----- | ------ | ------ | ------

Tag contents | No | No | Yes | Yes | Yes | Yes

标记内容|没有|没有|是的|是的|是的|是

Manage tags | No | No | Yes | Yes | No | No

管理标签|没有|没有|是的|是的|没有|没有