官术网_书友最值得收藏!

Tagging a document

A tag is a non-hierarchical keyword associated with a content or document. Tag is part of the metadata set of a document. A tag helps describe content, and enables keyword-based classification and easy search of information.

In a content management system, it is important to tag content or a document so that finding the actual content becomes easy and accurate.

How to do it...

  1. Open a particular space into which the document resides that you want to attach tags to.
  2. Here, we will use the same About InfoAxon.html content we used in previous recipe. Click on View Details and open the details page of the content.
  3. Alfresco offers the taggable aspect. Associating this will introduce the capability of attaching tags to a document. By default, this aspect is not associated with the uploaded or created documents, and thus tagging is not enabled for a document uploaded in Alfresco. Hence, we need to associate this aspect first in order to attach tags with this document.
  4. Click on the Run Action link. In the Select Action list, click on Add an aspect.
  5. Then click on Set Values and Add beneath the list. A list of the available aspects is displayed. Select the taggable aspect in the list and click OK.
  6. Click on Finish to complete the operation.
  7. The content details screen re-appears. See the Properties section in the screen; you will notice that a new property named tags has been added to this content. Now click on the Modify link to edit the properties.
  8. The property editor screen opens up allowing you to edit the metadata. Click on Click to select tags to open the tags editor panel.
  9. The tags panel appears. Click on the Add a tag link and enter your new tag in the textbox provided. Click on the green tick mark to add the tag.
  10. In this way, keep on adding the tags you want. After adding the tags, you need to click on OK to save your work. If you click Cancel, the tags will be added in the repository space scope, but won't be associated with your content. In that case, you will have to re-open this dialog box and click on the green plus mark of the corresponding tag.
  11. Here, we have created two new tags—infoaxon and cookbook, but only associated tag infoaxon with this content.
  12. Invoking the tag editor again will show this—infoaxon is a tag of this content but cookbook is not.

There's more...

One interesting point to be noted here is that Alfresco works with tag scope concept. Every folder or space in Alfresco can be a tag scope. This means if a space is defined as a tag scope, the tags created in the particular space is limited to that space only.

That's why, in our example in this recipe, we have created two tags—infoaxon and cookbook. So these two tags are in the scope of the current space. We have two documents in this space—About InfoAxon.html and logo.gif. If you open the tag editor for logo.gif file, you can see these tags ready to be attached with the document.

Detaching a tag

For detaching a tag from content, hover over the tag. A red minus icon will appear. Click on this and click OK. This will remove the tag from this document.

主站蜘蛛池模板: 沈阳市| 邯郸县| 临泽县| 辽宁省| 海宁市| 临潭县| 五原县| 万全县| 工布江达县| 海伦市| 扎囊县| 邓州市| 水富县| 同仁县| 麻阳| 重庆市| 高淳县| 昌平区| 安陆市| 花莲县| 磐安县| 武城县| 文登市| 吉隆县| 苍溪县| 永川市| 防城港市| 衢州市| 宜丰县| 泾阳县| 绥中县| 宜春市| 平定县| 荔波县| 雷波县| 昭苏县| 永济市| 板桥市| 栾川县| 通海县| 文登市|