SharePoint field definition field element name Attribute Value List in XML file

Source: Internet
Author: User
Tags xsl xsl file

The field element child level of the fieldtype element will be configured in the fldtypes *. xml file in % ProgramFiles % \ common files \ microsoft shared \ Web Server Extensions \ 14 \ template \ XML.

Each fieldtype element has several required and optional field elements, which are distinguished by the name attribute. The following table describes these elements. In the object model, the field type is represented by the spfieldtypedefinition class. This class has the read-only attribute corresponding to all rows except the two rows in the table. (The rows with the two exceptions are internaltype and sqltype .) Unless otherwise specified, the property name matches the value of the corresponding name attribute.

 

Value of the name attribute of the field element

Description

Allowbasetyperendering

Optional attribute; Type: Boolean. The default value is false. Specifies whether the client application presents the field as its basic type (also known as parenttype) when the client application cannot determine how to correctly render the Custom field type ). If it is set to true, and the client application cannot correctly render the Custom field type, the client application will render this field as the default SharePoint Foundation parent field type it inherits.

Camlrendering

Optional attribute; Type: Boolean. The default value is false. Specifies whether to use the caml flag in the renderpattern element of the parent fieldtype to present fields in the List View. The default value "false" indicates that fields are displayed in the List View through XSL conversion in the fldtypes *. XSL file. This file is a standard system used to present fields in the List View. (However, this element does not affect field rendering in the "display", "new", and "edit" forms. Renderpattern will still be the standard method for rendering fields in the "display" form .)

Fieldtypeclass

Optional attribute, type: string,This attribute is mandatory for all custom field types.. Indicates the strong name of the field type class library. "Fieldtypeclass" contains the class name and Assembly name with version, culture, and publickeytoken. For example: <field name = "fieldtypeclass"> customfieldtypes. regularexpression. regularexpressionfield, customfieldtypes. regularexpression, version = 1.0.0.0, culture = neutral, publickeytoken = 57e55365ec0ce80a </field> (only the built-in field type in SharePoint Foundation contains the fully qualified class name .)

Fieldeditorusercontrol

Optional. The type is string. IndicatesField_typeRelative Path of the fieldeditor. ascx file, which defines the control that appears in the "other bar Settings" section on the "new website bar" page of SharePoint Foundation. With this control, the column creator can set variable attributes of the field type for a specific column. For example, "/_ controltemplates/regularexpressionfieldeditor. ascx ". If the <field name = "fieldeditorusercontrol"> element does not exist, the specific attribute of the field type is rendered by the propertyschema element (field type.

Fieldeditorusercontrol should be a non-localized fixed string.

Filterable

Required attribute. The type is boolean. Indicates whether to filter the list of columns containing the field type based on the values in the field type column. If it is set to true, the title of the column is a control that can be used by users to filter the list.

Internaltype

Optional. The type is string. Represents an internal basic type.Do not use<Field name = "internaltype">Element.

Parenttype

Required attribute; Type: string (but may be an empty string ). The name of the type from which the field class is derived. The possible values are the same as those of the type attribute of the field element (list. If the field type is not derived from another type, this value is an empty string:

<Field name = "parenttype"> </field>.This string cannot be empty in the Custom field type. All custom types are inherited from another type.

In the SharePoint Foundation object model, parenttype is called baserenderingtypename.

Showonlistauthoringpages

Optional attribute; Type: Boolean. The default value is true. Indicates whether the field type is displayed in the list. If it is set to true, Sharepoint Foundation displays this field type on the list creation page so that you can include this field type in its list.

In the SharePoint Foundation object model, showonlistauthoringpages is called showonlistcreate.

Showondocumentlibraryauthoringpages

Optional attribute; Type: Boolean. The default value is true. Indicates whether this field type is displayed to be included in the document library. If it is set to true, Sharepoint Foundation displays this field type on the document library creation page so that you can include this field type in its document library.

In the SharePoint Foundation object model, showondocumentlibraryauthoringpages is called showondocumentlibrarycreate.

Showonsurveyauthoringpages

Optional attribute; Type: Boolean. The default value is true. Indicates whether the field type is displayed in the survey. If this parameter is set to true, Sharepoint Foundation displays this field type on the survey creation page so that you can include this field type in the survey.

In the SharePoint Foundation object model, showonsurveyauthoringpages is called showonsurveycreate.

Showoncolumntemplateauthoringpages

Optional attribute; Type: Boolean. The default value is true. Indicates whether this field type should be displayed as the column template field type. If it is set to true, Sharepoint Foundation displays this field type on the column template creation page, so that you can choose to create a column template for this field type.

In the SharePoint Foundation object model, showoncolumntemplateauthoringpages is called showoncolumntemplatecreate.

Sqltype

Optional. The type is string. The SQL data type that will be used to store data in the content database.Do not use<Field name = "sqltype">Element.

Sortable

Required attribute. The type is boolean. Indicates whether to sort the list of columns that contain this field type based on the columns that use this type. If it is set to true, the title of the column is a control that can be used to sort the list.

Typedisplayname

Required attribute. The type is string. Indicates the display name of the field type in the user interface (UI. In SharePoint Foundation, it appears in the "type" column on the "Custom" [LIST] Page (listedit. aspx. It can also be used to replace "typeshortdescription" (if it does not exist ).

"Typedisplayname" should be a localized string.

Typename

Required attribute. The type is string. The name of the field type. It must be unique among all field types in the Sharepoint Server Farm.

"Typename" should be a fixed string that cannot be localized.

Typeshortdescription

Optional. The type is string. A brief description of the field type displayed on the user interface. In SharePoint foundation, it is displayed in the "name and type" section of the "new website bar" and "create column" pages, and in the "type" column of the "website bar library, with a single-choice button. If the <field name = "typeshortdescription"> element does not exist, use "typedisplayname ".

"Typeshortdescription" should be a localized string.

Usercreatable

Optional attribute; Type: Boolean. The default value is true, which allows you to add fields of this field type to the list. If this value is set to false, the field type in the list architecture is allowed, however, you cannot see this field type in the "name and type" section on the "Create a website" and "Create a column" pages.

 

From: http://msdn.microsoft.com/zh-cn/library/aa544201.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.