Ektron CMS400.Net Reference

>>Managing User Communities > Flagging > ContentFlagging Server Control

ContentFlagging Server Control

Note: To learn about creating and managing the content flags used in this server control, see Flagging.

After you add this control to a Web form, a site visitor who views nearby content can flag it and provide feedback. This is similar to the ContentReview server control. The main differences are:

The feedback is not displayed on the site

The control provides is a user-defined list describing the reason for the flag

Lists can be centered on content that is inappropriate for some viewers. For example:

Sexually Explicit

Mature (over 18 only) content

Graphic Violence

Hate Speech

Flagging can also be used to notify administrators about the quality of the content, helping you to create a recommended content list. Below is an example of a flagging definition’s options.

Loved This Content

Hated This Content

I Could Take It or Leave It

Having a way to flag content is a necessity for sites with a large quantity of site-visitor generated content. Content flagging spreads moderation of your site to your visitor base and helps site visitors feel invested in the site.

ContentFlagging Server Control Properties

The ContentFlagging server control properties are described in this table.

Note: The following table only lists Ektron-specific properties. It does not describe native .NET properties such as font, height, width and border style. For documentation of these properties, see Visual Studio help.

Property

Description

Data Type

Authenticated

Indicates if you are logged in to the CMS Explorer and can use it to browse to Content, Collections, etc.

See Also:

Working with Ektron CMS400.NET Server Controls

String

DefaultContentID

The default content ID for this control to use when there is no matching dynamic parameter value passed.

Long

DisplayXslt

Determines how information is displayed on the page. Enter the path to the XSL file. It can be relative or absolute.

Warning! If you specify an external file, it is strongly recommended that you do not store this file in your site's Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.

String

 

DoInitFill

By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, FIll is automatically called during the Page Render event.

You might do this if you need to set or change a property on the control in codebehind and have it render with your changes shown.

Boolean

DynamicParameter

Gets or sets the QueryString parameter to read a content ID dynamically. To use the default content ID, leave blank.

String

FlagImage

Enter a path to an image that overrides the text in the FlagText property. When the image is clicked, the flag dialog appears.

String

FlagText

Text for the link that is shown to allow flagging. For example, you might use “Click here to flag this content.” The FlagImage property overrides this property. When the text link is clicked, the flag dialog appears.

String

Hide

Used to hide output of the control in design time and run time.

True = Hide control.

False = Display control.

Boolean

Language

Set a language for viewing the ContentFlagging control. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).

Integer

Stylesheet

Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.

String

SuppressWrapperTags

Suppresses the output of the span/div tags around the control. The default is False.

True - Suppress wrap tags.

False - Allow wrap tags.

Boolean

WrapTag

Allows a developer to specify a server control’s tag.

The default is Span.

Span - The <span> tag is used to designate an inline portion of an HTML document as a span element.

Div - The <div> tag is used when you want to apply attributes to a block of code.

Custom - Allows you to use a custom tag.

String


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.