Domanda

Sto creando un tipo di campo personalizzato, tipo di contenuto e definizione dell'elenco.Ho un tipo di campo personalizzato ereditando dal valore multicolumn e sto aggiungendo nuovi campi del mio tipo personalizzato alla mia nuova lista di lista. Per questo ho i file seguenti.

per il tipo di campo personalizzato

1.  .cs file
2.  .xml file
3.  .ascx file
4.  .xsl file
.

per la definizione dell'elenco

5.  Element.xml
6.  Schema.xml
.

Sto aggiungendo un tipo di contenuto nel file element.xml e aggiungendo i campi alla mia nuova definizione di elenco tramite schema.xml

Quando sto distribuendo questo, qual è l'ordine in cui vengono richiamati i file sopra?Quale creato prima, tipo di campo personalizzato?Tipo di contenuto? Campi?Definizione dell'elenco?

È stato utile?

Soluzione

Your .cs, .ascx, .xml and .xsl files are only invoked when rendering the field, and each time the field is shown on forms & list views.

The contents of the elements file will reference something in the Schema file, so the schema file is loaded first before the contents of the elements, and this is done only on Feature activation.

For the rest, the general order is always this:

Field Definitions Content Type Definitions List Definitions List Instances

All the contents of all Elements.xml files are parsed and loaded at once into the content database, which orders them according to a specific schema, and creates the appropriate artefacts. This all happens on Feature Activation.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top