Tag Content Type

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 50%
  • 6.0
  • Enterprise
  • Community
  • Planned

Overview

Tag content type is used for storing tag entities in Sense/Net Content Repository for administrating them by Tag admin Portlet.

Details

Parent type

Content handler

Fields

Inherited fields of Tag Content Type
Field name Field type Inherited from Description
IsBlacklisted Boolean GenericContent Determines if a tag is on blacklist

Applications

Tag Search Application

TagSearch Applicaton based on a smart applicatiin model which uses the Tag search Portlet.

Usage

To use this application just complete the request parameter the following items:

  • action=SearchTag -it cause the page linked to a TagSearch Page.
  • TagFilter={tag} -this is optional parameter, if is exist the TagSearhPortlet in the TagSearch Page automaticly search by the given value.

If it nost set, but the url is content's url which content is a tag, the TagSearchPortlet in the TagSearch Page automaticly search by the actual tag's name.
In all other cases the page linked to a TagSearch Page.

Example

Booth url is link to a page where is a Tag search Portlet with listed all content which contain the civic tag.

Tag Edit Application

Tag Edit Applicaton based on a smart application modell. It is a generic edit application. It renames the edited tag on contents containing it.

Usage

To use this application just append the request parameter:

  • action=edit

Example

Tag Delete Application

Tag Delete Applicaton based on a smart application modell. It is a generic delete application without user interface. It removes the deleted tag from contents containing it.

Usage

To use this application just append the request parameter:

  • action=delete

Example


Full featured code

<ContentType name="Tag" parentType="GenericContent" handler="SenseNet.ContentRepository.GenericContent"
	     xmlns="http://schemas.sensenet.com/SenseNet/ContentRepository/ContentTypeDefinition">
  <Title>Tag</Title>
  <Description>Content type for storing tag entities.</Description>
  <Icon>Content</Icon>
  <Fields>
    <Field name="IsBlacklisted" type="Boolean">
      <Title>Is blacklisted</Title>
      <Description>Determines if tag was blacklisted.</Description>
      <Configuration>
        <DefaultValue>false</DefaultValue>
      </Configuration>
    </Field>
  </Fields>
</ContentType>


Example/Tutorials

There are no examples for this article.

Related links

References

There are no external references for this article.