Content Studio Web Content Management System
SystemObject
ContentStudio.SiteCodeBase
ContentStudio.Site.ActiveScriptingActiveScriptingBase
ContentStudio.Site.ActiveScriptingDocumentBase
ContentStudio.Site.ActiveScripting.DocumentListDocuments20
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Top
Top
Top
To use this class, create an instance of this object, set up the
properties and call the Invoke method with an appropriate set of
parameters.
This class can throw exceptions, thus your code should be wrapped
within try/catch statements in order to avoid the entire page to crash.
This class generates inline code, thus you must wrap it into a block
element to make the page validate according to the HTML/XHTML
regulations.
The generated code is fully HTML/XHTML strict compatible.
The following code snippet shows how to use ListDocuments20
[This is preliminary documentation and is subject to change.]
Lists information about documents from a category in a table. The
content of the document will not be displayed.
The ListDocuments20 class acts as the underlying engine for the List
documents 2.0 AS component.
Inheritance Hierarchy
ContentStudio.SiteCodeBase
ContentStudio.Site.ActiveScriptingActiveScriptingBase
ContentStudio.Site.ActiveScriptingDocumentBase
ContentStudio.Site.ActiveScripting.DocumentListDocuments20
Namespace: ContentStudio.Site.ActiveScripting.Document
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
The ListDocuments20 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ListDocuments20 |
Constructs a new instance of the ListDocuments20 class that
writes to the default response stream
| |
ListDocuments20(Stream) |
Constructs a new instance of the ListDocuments20 class that
writes to the supplied stream
|
Properties
Name | Description | |
---|---|---|
BackwardsComponentCompatibilityMode |
Sets or gets a value that indicates whether the code runs in backwards
compatibility component mode. The default value is false.
(Inherited from ActiveScriptingBase.) | |
Border |
Sets or gets the table border width. The default value is zero (no
border)
| |
cellPadding |
Sets or gets the table cell padding. The default value is 3.
| |
cellSpacing |
Sets or gets the table cell spacing. The default value is zero (no cell
spacing)
| |
ColProperties |
Sets or gets the column properties. The default value is an empty
string.
| |
ComponentName | Gets the name of the component (Overrides ActiveScriptingBaseComponentName.) | |
Conformance |
Gets a value which specifies which type of code a component can generate.
(Overrides ActiveScriptingBaseConformance.) | |
DateFormat |
Sets or gets the date format string. For more information on the
different time format strings, see the System.Globalization.DateTimeFormatInfo
class documentation. The default value is "g" which displays
a combination of the short date and long time patterns, separated by a
space.
| |
DefaultSortOrder |
Sets or gets the default sort order. The default value is DocumentComponentSupport.DocListSortorder.DocumentNameDesc | |
ElementType |
Gets a value which specifies the type of outer element the component generates.
(Overrides ActiveScriptingBaseElementType.) | |
Encoding |
Sets or gets the encoding the component uses. The default encoding is
the UTF8 encoding without byte order mark.
(Inherited from ActiveScriptingBase.) | |
headerClassName |
Sets or gets the class name of the header column. The default value is
an empty string (no class name is used).
| |
InsertedDocuments |
Gets the number of documents that are listed. Before Invoked is
called, the value is -1.
| |
Location |
Sets or gets the category to fetch documents from. This field is required
but the default value is zero (not set)
| |
NoDocumentLabel |
Sets or gets the message to show when no documents are found. The
default value is "No documents found"
| |
Number |
Sets or gets the maximum number of documents to list. A zero means that
all documents are listed. The default value is zero (list all
documents)
| |
PTID |
Sets or gets an optional PTID. The default value is zero (no optional
PTID).
| |
startNumber |
Sets or gets the number of documents to skip before displaying the
first document according to the current sorting order. The default
value is zero (display from the first document)
| |
TableAttributes |
Sets or gets the attributes for a table. The default value is an empty
string (no table attributes are used).
| |
TableCaption |
Sets or gets the caption for a table. The default value is an empty
string (no caption is used).
| |
TableSummary |
Sets or gets the table summary. The default value is an empty string (no
table summary is used)
| |
Target |
Sets or gets the target attribute for a link. The default value is an
empty string (no target attribute is used).
| |
textClassName |
Sets or gets the class name that is applied to all columns except the
title column. The default value is an empty string (no class name is
used).
| |
titleClassName |
Sets or gets the class name of the title column. The default value is
an empty string (no class name is used).
| |
Width |
Sets or gets the table width. The default value is an empty string
(unspecified width)
|
Methods
Name | Description | |
---|---|---|
AddColumn |
Adds a column to the table displaying the document information
| |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Invoke |
Invokes the component and writes its content into the specified stream
| |
ToString | (Inherited from Object.) |
Remarks
Examples
C#
ListDocuments20 list = new ListDocuments20(); //CategoryID list.Location = 547; list.AddColumn(ListDocuments20Dev.Documentfield.Title, "Title"); list.AddColumn(ListDocuments20Dev.Documentfield.ID, "Document id"); list.AddColumn(ListDocuments20Dev.Documentfield.CreatedBy, "Created by"); list.Invoke();
Visual Basic
Dim list As New ListDocuments20() ' CategoryID list.Location = 547 list.AddColumn(ListDocuments20Dev.Documentfield.Title, "Title") list.AddColumn(ListDocuments20Dev.Documentfield.ID, "Document id") list.AddColumn(ListDocuments20Dev.Documentfield.CreatedBy, "Created by") list.Invoke()
See Also