Ramon Torras

TECHNOLOGY ENTHUSIAST

Listado de tipos de lista base. Asociar un content type a una lista…

 

Cuando programas instancias a listas es necesario saber el tipo base de lista de la instancia. Sobre que definición se basara nuestra instancia de lista.

 

Supongamos que nos basamos en definiciones de listas estándar.

Base Types

These Base Types come from the SPBaseType enumeration.

Base Type

ID

Custom List

0

Document Library

1

Not used

2

Obsolete. Use 0 for discussion boards.

3

Surveys

4

Issues List

5

 

 

List Definitions

These List Definitions come from the SPListTemplateType enumeration.

Enumeration Name

Description

ID

InvalidType

Not used

-1

NoListTemplate

unspecified list type

0

GenericList

Custom list

100

DocumentLibrary

Document library

101

Survey

Survey

102

Links

Links

103

Announcements

Announcements

104

Contacts

Contacts

105

Events

Calendar

106

Tasks

Tasks

107

DiscussionBoard

Discussion board

108

PictureLibrary

Picture library

109

DataSources

Data sources for a site

110

WebTemplateCatalog

Site template gallery

111

UserInformation

User Information

112

WebPartCatalog

Web Part gallery

113

ListTemplateCatalog

List Template gallery

114

XMLForm

XML Form library

115

MasterPageCatalog

Master Page gallery

116

NoCodeWorkflows

No Code Workflows

117

WorkflowProcess

Custom Workflow Process

118

WebPageLibrary

Wiki Page Library

119

CustomGrid

Custom grid for a list

120

SolutionCatalog

Solutions

121

NoCodePublic

No Code Public Workflow

122

ThemeCatalog

Themes

123

DataConnectionLibrary

Data connection library for sharing information about external data connections

130

WorkflowHistory

Workflow History

140

GanttTasks

Project Tasks

150

Meetings

Meeting Series (Meeting)

200

Agenda

Agenda (Meeting)

201

MeetingUser

Attendees (Meeting)

202

Decision

Decisions (Meeting)

204

MeetingObjective

Objectives (Meeting)

207

TextBox

Text Box (Meeting)

210

ThingsToBring

Things To Bring (Meeting)

211

HomePageLibrary

Workspace Pages (Meeting)

212

Posts

Posts (Blog)

301

Comments

Comments (Blog)

302

Categories

Categories (Blog)

303

Facility

Facility

402

Whereabouts

Whereabouts

403

CallTrack

Call Track

404

Circulation

Circulation

405

Timecard

Timecard

420

Holidays

Holidays

421

IMEDic

IME (Input Method Editor) Dictionary

499

ExternalList

External

600

IssueTracking

Issue tracking

1100

AdminTasks

Administrator Tasks

1200

HealthRules

Health Rules

1220

HealthReports

Health Reports

1221

 

 

Content Types

These content types come from the Content Type ID list.

Content Type

ID

System

0x

Item

0×01

Document

0×0101

Event

0×0102

Issue

0×0103

Announcement

0×0104

Link

0×0105

Contact

0×0106

Message

0×0107

Task

0×0108

Workflow History

0×0109

Post

0×0110

Comment

0×0111

East Asia Contact

0×0116

Folder

0×0120

 

 

Para vincular el content type al listinstance. Hay muchas formas, en esteblog opinan sobre los distintos métodos:

  • Declarativamente
    • Descartado! Tienes que poner todas las definiciones de campos del CT… puaj!
  • Programaticamente
    • Sip! Mediante codigo en el event de la feature
      • Vinculo el contenttype (estándar o custom previamente definido)

Aquí está el post de la discusión:

http://sharepoint.stackexchange.com/questions/19199/best-method-to-bind-content-types-to-a-list

 

En este post nos cuenta como añadir el content type programáticamente (El que yo recomiendo encarecidamente):

http://koenvosters.wordpress.com/2010/04/28/howto-create-a-list-and-bind-a-content-type-to-it-in-sharepoint-2010/

 

http://msdn.microsoft.com/en-us/library/aa543822.aspx

 

Saludos

 

Comments are currently closed.