So fügen Sie meiner benutzerdefinierten Webvorlage Kalender- und Ankündigungsliste hinzu?

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/63178

  •  10-12-2019
  •  | 
  •  

Frage

Ich verwende SharePoint 2010 und VS2010.

Ich habe dieses Tutorial zum Erstellen einer benutzerdefinierten Webvorlage implementiert:

http://usmanmughal.wordpress.com/2011/04/26/how-to-create-web-template-in-sharepoint-2010-ising-feature/

Jetzt möchte ich die Liste der Kalender- und Ankündigungsliste auf der Startseite hinzufügen.Wo und wie mache ich das in meinen Webvorlagendateien wie folgt:

    .
  1. defaultdws.aspx
  2. default.aspx
  3. onter.xml
  4. elements.xml

    Was tun in welcher Datei?

War es hilfreich?

Lösung

You need to modify Onet.xml file,

http://msdn.microsoft.com/en-us/library/ms474369(v=office.12).aspx

If you go through article link I given above you will figure out that in Onet.xml file you need to add

<ListTemplates>
  <ListTemplate .. tag for calendar list and then />
  <ListTemplate .. tag for calendar list and then />
</ListTemplates>

You will need to change list template type for calendar and annoucement in list template, I will let you do it yourself.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top